-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
onSelectedCellChange
event (#3328)
* feat: add `onCellSelected` event * test: add `onCellSelected` event * doc: add `onCellSelected` event * refactor: define `row` & `column` with minimum scope Co-Authored-By: Aman Mahajan <[email protected]> Co-Authored-By: Aman Mahajan <[email protected]> * test: fix wrong MouseKey Co-authored-by: Aman Mahajan <[email protected]> * test: combine the tests for `onCellSelected` to one Co-Authored-By: Aman Mahajan <[email protected]> * refactor: rename from `onCellSelected` to `onSelectedCellChange` Co-Authored-By: Aman Mahajan <[email protected]> * doc: simplify document Co-Authored-By: Aman Mahajan <[email protected]> * doc: improve English expressions Co-Authored-By: Aman Mahajan <[email protected]> * refactor: avoid unnecessary assignment to variable * feat: remove `idx` argument from `onSelectedCellChange` You can easily get `idx` from `column`. (column.idx) Co-Authored-By: Aman Mahajan <[email protected]> * test: remove `idx` argument from `onSelectedCellChange` * test: use spy to test called time of `onSelectedCellChange` Co-Authored-By: Aman Mahajan <[email protected]> * doc: remove no longer supported argument `args.idx` Co-authored-by: Aman Mahajan <[email protected]> * test: avoid using function for `onSelectedCellChange` test Co-authored-by: Aman Mahajan <[email protected]> * Update test/events.test.tsx --------- Co-authored-by: Aman Mahajan <[email protected]> Co-authored-by: Aman Mahajan <[email protected]>
- Loading branch information
1 parent
72db386
commit b44343a
Showing
5 changed files
with
88 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters