glide-data-grid icon indicating copy to clipboard operation
glide-data-grid copied to clipboard

Feature Request: callback on user attempting to enter editor mode on cell, even if allowOverlay: false

Open mikereczek opened this issue 4 years ago • 5 comments

As the title suggests, I'd like to propose a callback for when a user presses enter or clicks on an already selected cell (ie, performs an action that would generally open up an editor), regardless of whether the cell can enter editor mode, and gives at least [row, column] information.

My use case would be to allow the user to press enter or double click on a cell / row to open a modal or perform some other action outside the purview of glide-data-grid. onCellClicked misses out on the user pressing Enter.

I know there are a lot of moving pieces in 4.0.0 right now, but I don't think there is a callback is available to achieve this.

Potential names: onCellActivated? onCellSecondClickOrEnter?

Related to #120

Thoughts?

mikereczek avatar Mar 28 '22 05:03 mikereczek

Any reason onCellClicked shouldn't be used?

jassmith avatar Mar 28 '22 06:03 jassmith

Mainly because it doesn't pick up on the user pressing Enter.

I think it would be easy enough to avoid first clicks (like where the user is wandering around the grid with the mouse).

mikereczek avatar Mar 28 '22 06:03 mikereczek

We'll trigger an onCellActivated event on those cases. Working on it.

ivoelbert avatar Mar 28 '22 19:03 ivoelbert

This is fixed in 4.0

jassmith avatar Mar 30 '22 19:03 jassmith

Thank you. Very much appreciated!

mikereczek avatar Mar 30 '22 19:03 mikereczek