ParamQuery grid support forum

General Category => Bug Report => Topic started by: daiki.matsui on June 10, 2022, 09:49:49 am

Title: The argument passed to the editable option's callback is different from the API
Post by: daiki.matsui on June 10, 2022, 09:49:49 am
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?
Title: Re: The argument passed to the editable option's callback is different from the API
Post by: paramvir on June 10, 2022, 10:11:03 pm
Thanks for sharing a test case, I would have it fixed.

Meanwhile dataIndx can be obtained from ui.column.dataIndx