1.0.0-beta.1 • Published 5 years ago

@tfaster/extended-cdk-selection v1.0.0-beta.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

npm (scoped) Build Status GitHub

Extended CDK Selection

This is an enhancement for the Angular CDK SelectionModel implementation. It provides a controller for data tables and lists adding mouse and keyboard selection like other well known applications (i.e. Outlook, Windows file Explorer)

Keyboard Navigation & Selection

↓/↑Select next or previous item, current selection is cleared
Ctrl+↑/↓Move focus to next or previous item only
Shift+↑/↓Range select next or previous item, current selection is cleared
Ctrl+Shift+↑/↓Range select next or previous item, adding to current selection
SpaceSelect focused item, current selection is cleared
Ctrl+SpaceToggle focused item, current selection is not cleared
Ctrl+ASelect all items

Mouse & Keyboard Selection

ClickSelect item, current selection is cleared
Ctrl+ClickToggle item, current selection is not cleared
Shift+ClickRange select from focused item until clicked item, current selection is cleared
Ctrl+Shift+ClickRange select from focused item until clicked item, adding to current selection