chrome:shell.skip

generated:catalog.entry.cdk-selection.title

generated:catalog.entry.cdk-selection.description

@xngui/cdk/selection
@xngui/cdk/selection

chrome:demo.section

chrome:demo.preview

cdk-preview:selection.multi-select-table

Selected 0 of 6

cdk-preview:selection.namecdk-preview:selection.role
Ava ChenEngineer
Liam GarciaDesigner
Noah SmithProduct Manager
Mia PatelAnalyst
Ethan KimEngineer
Zoe RossiRecruiter
demo-preview:hints.category.assistive:
TipSR
import { XSelection } from '@xngui/cdk/selection';
 
const selection = new XSelection({
multiple: true,
compareWith: (a, b) => a.id === b.id,
});
 
selection.toggle(person);
selection.size(); // → 0

chrome:demo.events.title

chrome:demo.events.empty