Skip to content

Commit

Permalink
polish text
Browse files Browse the repository at this point in the history
  • Loading branch information
vursen committed Dec 20, 2024
1 parent 582010d commit c3843d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion articles/components/grid/selection.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ endif::[]

In addition to selecting rows individually, you may want to enable users to select or deselect a range of rows using kbd:[Shift] + Click. Since there is a variety of possible behaviors for range selection, Grid provides the necessary event, `item-toggle`, to create your own implemention. This event provides information about the toggled row, its selection state, and whether the user was holding kbd:[Shift] during the toggle.

Check failure on line 73 in articles/components/grid/selection.adoc

View workflow job for this annotation

GitHub Actions / lint

[vale] reported by reviewdog 🐶 [Vale.Spelling] Did you really mean 'implemention'? Raw Output: {"message": "[Vale.Spelling] Did you really mean 'implemention'?", "location": {"path": "articles/components/grid/selection.adoc", "range": {"start": {"line": 73, "column": 276}}}, "severity": "ERROR"}

The example below demonstrates a possible implementation of range selection using that event. In this implementation, the first toggled row is stored as an anchor point. When the user holds kbd:[Shift] and toggles another row, the selection state of all rows between the anchor and the target row is updated to match the target row's state. After that, the target row becomes the new anchor point.
The example below demonstrates a possible implementation of range selection using that event. In this implementation, the first clicked row is stored as an anchor point. When the user holds kbd:[Shift] and clicks another row, the selection state of all rows between the anchor and the newly clicked row is updated to match the clicked row's state. The clicked row then becomes the new anchor point for future selections.

[.example]
--
Expand Down

0 comments on commit c3843d1

Please sign in to comment.