Pass column, row and data as context to getEditor
This commit is contained in:
parent
3651f23157
commit
d41973475f
3
dist/frappe-datatable.cjs.js
vendored
3
dist/frappe-datatable.cjs.js
vendored
@ -2300,8 +2300,9 @@ class CellManager {
|
|||||||
getEditor(colIndex, rowIndex, value, parent) {
|
getEditor(colIndex, rowIndex, value, parent) {
|
||||||
const column = this.datamanager.getColumn(colIndex);
|
const column = this.datamanager.getColumn(colIndex);
|
||||||
const row = this.datamanager.getRow(rowIndex);
|
const row = this.datamanager.getRow(rowIndex);
|
||||||
|
const data = this.datamanager.getData(rowIndex);
|
||||||
let editor = this.options.getEditor ?
|
let editor = this.options.getEditor ?
|
||||||
this.options.getEditor(colIndex, rowIndex, value, parent, column, row) :
|
this.options.getEditor(colIndex, rowIndex, value, parent, column, row, data) :
|
||||||
this.getDefaultEditor(parent);
|
this.getDefaultEditor(parent);
|
||||||
|
|
||||||
if (editor === false) {
|
if (editor === false) {
|
||||||
|
|||||||
3
dist/frappe-datatable.js
vendored
3
dist/frappe-datatable.js
vendored
@ -2299,8 +2299,9 @@ class CellManager {
|
|||||||
getEditor(colIndex, rowIndex, value, parent) {
|
getEditor(colIndex, rowIndex, value, parent) {
|
||||||
const column = this.datamanager.getColumn(colIndex);
|
const column = this.datamanager.getColumn(colIndex);
|
||||||
const row = this.datamanager.getRow(rowIndex);
|
const row = this.datamanager.getRow(rowIndex);
|
||||||
|
const data = this.datamanager.getData(rowIndex);
|
||||||
let editor = this.options.getEditor ?
|
let editor = this.options.getEditor ?
|
||||||
this.options.getEditor(colIndex, rowIndex, value, parent, column, row) :
|
this.options.getEditor(colIndex, rowIndex, value, parent, column, row, data) :
|
||||||
this.getDefaultEditor(parent);
|
this.getDefaultEditor(parent);
|
||||||
|
|
||||||
if (editor === false) {
|
if (editor === false) {
|
||||||
|
|||||||
@ -2299,8 +2299,9 @@ class CellManager {
|
|||||||
getEditor(colIndex, rowIndex, value, parent) {
|
getEditor(colIndex, rowIndex, value, parent) {
|
||||||
const column = this.datamanager.getColumn(colIndex);
|
const column = this.datamanager.getColumn(colIndex);
|
||||||
const row = this.datamanager.getRow(rowIndex);
|
const row = this.datamanager.getRow(rowIndex);
|
||||||
|
const data = this.datamanager.getData(rowIndex);
|
||||||
let editor = this.options.getEditor ?
|
let editor = this.options.getEditor ?
|
||||||
this.options.getEditor(colIndex, rowIndex, value, parent, column, row) :
|
this.options.getEditor(colIndex, rowIndex, value, parent, column, row, data) :
|
||||||
this.getDefaultEditor(parent);
|
this.getDefaultEditor(parent);
|
||||||
|
|
||||||
if (editor === false) {
|
if (editor === false) {
|
||||||
|
|||||||
@ -432,8 +432,9 @@ export default class CellManager {
|
|||||||
getEditor(colIndex, rowIndex, value, parent) {
|
getEditor(colIndex, rowIndex, value, parent) {
|
||||||
const column = this.datamanager.getColumn(colIndex);
|
const column = this.datamanager.getColumn(colIndex);
|
||||||
const row = this.datamanager.getRow(rowIndex);
|
const row = this.datamanager.getRow(rowIndex);
|
||||||
|
const data = this.datamanager.getData(rowIndex);
|
||||||
let editor = this.options.getEditor ?
|
let editor = this.options.getEditor ?
|
||||||
this.options.getEditor(colIndex, rowIndex, value, parent, column, row) :
|
this.options.getEditor(colIndex, rowIndex, value, parent, column, row, data) :
|
||||||
this.getDefaultEditor(parent);
|
this.getDefaultEditor(parent);
|
||||||
|
|
||||||
if (editor === false) {
|
if (editor === false) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user