Author Topic: The argument passed to the editable option's callback is different from the API  (Read 593 times)

daiki.matsui

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 4
    • View Profile
The following API document shows that ui has dataIndx when column > editable callback.
https://paramquery.com/pro/api#option-column-editable
ui:{ rowIndx, rowData, colIndx, dataIndx, column }

But when called by updateRow, ui doesn't have dataIndx.
I have prepared a sample that outputs ui on the console when you press the debug button.
https://jsfiddle.net/eryhsxuf/ 
The output of ui is as follows.
ui: {rowIndx,rowData,colIndx,column}

If this is a bug , please fix it.
If it's not a bug, is there a workaroud?

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6310
    • View Profile
Thanks for sharing a test case, I would have it fixed.

Meanwhile dataIndx can be obtained from ui.column.dataIndx