Mention the selectedRanges for handleContextMenu in the documentation
MarcusElg opened this issue · comments
I've added multiple custom actions such as removing a row. This works fine when selecting an entire row, but I would also be able to remove a row just by selecting a single cell, like it works in Google docs. However looking at https://reactgrid.com/docs/4.0/2-implementing-core-features/5-context-menu/ the only inputs are selectedRowIds and selectedColIds. Both these are empty arrays when the selection mode is "range". So how would access the selected positions?
@MarcusElg In fact, onContextMenu has a fifth parameter, selectedRanges, which is the selection range
@MarcusElg In fact, onContextMenu has a fifth parameter, selectedRanges, which is the selection range
Great! That should definitely be mentioned in the documentation...
Done,PR:silevis/reactgrid-website#25