Join GitHub today
Is getCellMeta using physical or logical row indexes? #3025
The documentation here does not mention if the row index to be passed has to be physical (= index in the underlying source) or logical (= index in the visual representation, which may be different when some sorting is applied).
Based on my test it looks like it is a logical index, which I'm converting to physical index using this:
logicalToPhysical: (logical_row_index) # https://github.com/handsontable/handsontable/issues/2718#issuecomment-139201814 physical_row_index = Handsontable.hooks.run(@hot, 'modifyRow', logical_row_index) physical_row_index
Can anyone confirm that indeed the API contract here is that the row is expected to be a logical index?
I would like to make sure the underlying assumptions do not change in the future. Thanks!