Selection (two-way)
Click rows to select (Ctrl/Shift for multi). The directive's selected() signal reflects the current selection reactively, read it directly, no event plumbing.
Selected 0 row(s): -
| ID | Name | Position | Office | Age | Start date | Salary | Status |
|---|
import 'datatables.net-select'; // register the Select extension
table = viewChild.required(DtTableDirective<Employee>);
options: Config = { select: { style: 'multi' } };
// The directive surfaces the selection as a signal:
selectedNames = () => this.table().selected().map(e => e.name).join(', ');