src/lib/components/spatial-search-list/spatial-search-list.component.ts
Displays a list of spatial searches
| changeDetection | ChangeDetectionStrategy.OnPush |
| selector | ccf-spatial-search-list |
| imports |
HraCommonModule
MatButtonModule
MatIconModule
MatCheckboxModule
MatListModule
|
| templateUrl | ./spatial-search-list.component.html |
| styleUrl | ./spatial-search-list.component.scss |
Properties |
Methods |
Inputs |
Outputs |
| items | |
Type : T[]
|
|
Default value : []
|
|
|
Items to display |
|
| label | |
Type : string
|
|
Default value : ''
|
|
|
Label for the list |
|
| itemRemoved | |
Type : T
|
|
|
Emits the item that has been removed from the list |
|
| selectionChanged | |
Type : T[]
|
|
|
Emits the new items when a selection changes |
|
| itemId | ||||||||||||
itemId(_index: number, item: T)
|
||||||||||||
|
Computes a unique id for an item
Parameters :
Returns :
string
A unique id |
| removeItem | ||||||||
removeItem(index: number)
|
||||||||
|
Removes an item from the list
Parameters :
Returns :
void
|
| updateAllItemsSelection | ||||||||
updateAllItemsSelection(checked: boolean)
|
||||||||
|
Updates all items to checked or unchecked
Parameters :
Returns :
void
|
| updateItemSelection | ||||||||||||
updateItemSelection(index: number, selected: boolean)
|
||||||||||||
|
Updates the selected state for an item
Parameters :
Returns :
void
|
| allSelected |
Type : unknown
|
Default value : true
|
|
If all items are selected |