Skip to content

Selection

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

Single / multi selection model for lists and tables.

Preview

Multi-select table

Selected 0 of 6

NameRole
Ava ChenEngineer
Liam GarciaDesigner
Noah SmithProduct Manager
Mia PatelAnalyst
Ethan KimEngineer
Zoe RossiRecruiter
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

Events

Interact with the preview — events will appear here.