Skip to content

Please add an example for MULTI SHIFT CLICK selection in checkbox mat table #17402

@andreElrico

Description

@andreElrico

Feature Description

MY STACKBLITZ

Example of this feature RUN CODE SNIPPET

Use Case

(In respect to my Stackblitz)
It should be possible to

  1. go to page-2
  2. shift-click element 10 (and keep holding shift)
  3. go to page-1
  4. shift click element 3 (and release shift)
  5. elements 3-10 are added to the selection model and are highlighted

This should work on filtered and sorted data.


The reference I found on SO

  1. https://stackoverflow.com/questions/56737974/mat-table-shift-selection-on-mutiple-rows
  2. https://stackoverflow.com/questions/51927265/angular-mat-table-and-shift-click-selection

(maybe this could be a feature of cdk-selection, so this would also work outside of a table context ... to be honest, I don't know how to abstract this ...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureThis issue represents a new feature or feature request rather than a bug or bug fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions