LmnSelectionDirective
Decorators: |
|
Generic types: | T |
Selectors: | [ |
Add selection capabilities to the table
Properties
Name | Type | Description |
---|---|---|
allSelected r |
| Whether all items are selected. |
compareFn r |
| The function to compare two items for selection. |
disabledItems r |
| The list of items that are selected and disabled for massive operation. You can still deselect them individually. |
enabled r |
| Whether selection is enabled. |
hasValue r |
| Whether any items are selected. |
isEmpty r |
| Whether no items are selected. |
mode r |
| The selection mode, either 'single' or 'multiple'. |
multipleSelectionValueFn r |
| The function to get the value for multiple selection. |
selection r |
| The selection model for the table. |
setInput r | <This, T extends keyof { [P in keyof This as This[P] extends | Function to set input values. |
someSelected r |
| Whether some but not all items are selected. |
total r |
| The total number of items that can be selected. |
Methods
clear() |
---|
Clears the selection. |
Presentation
|
Returnsvoid |
deselect() | ||||||
---|---|---|---|---|---|---|
Deselects an item. | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |
isSelected() | ||||||
---|---|---|---|---|---|---|
Checks if an item is selected. | ||||||
Presentation
| ||||||
Parameters
Returnsboolean |
select() | ||||||
---|---|---|---|---|---|---|
Selects an item. | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |
selectAll() | ||||||
---|---|---|---|---|---|---|
Selects all items. | ||||||
Presentation
| ||||||
Parameters
Returnsvoid |
toggle() | ||||||
---|---|---|---|---|---|---|
Toggles the selection state of an item. | ||||||
Presentation
| ||||||
Parameters
Returnsboolean |
toMultipleSelectionValue() | ||||||
---|---|---|---|---|---|---|
Converts an item to a string for multiple selection. | ||||||
Presentation
| ||||||
Parameters
Returnsstring |