Constructors
constructor
- new Selection(dataSource): Selection
Methods
addSelectedKeys
- addSelectedKeys(keys): void
Returns void
deSelectAll
- deSelectAll(truggerEvent?): void
Parameters
- truggerEvent: boolean = false
Returns void
getSelectedKeys
- getSelectedKeys(): (string | number)[]
Returns (string | number)[]
getSelectedRows
- getSelectedRows(): number[]
Returns number[]
number array
highlightRow
- highlightRow(e, currentRow, overrideSelectionMode?): void
Parameters
- e: MouseEvent
- currentRow: number
Optional
overrideSelectionMode: "none" | "single" | "multiple"
Returns void
isSelected
- isSelected(row): boolean
Returns boolean
selectAll
- selectAll(): void
Returns void
selectRowRange
- selectRowRange(start, end, add?): void
Parameters
- start: number
- end: number
- add: boolean = false
Returns void
setSelectedKeys
- setSelectedKeys(keys): void
Returns void
triggerSelectionChange
- triggerSelectionChange(): void
Returns void
adds to selection