import {MatListModule} from '@angular/material/list';
MatNavList
Selector: mat-nav-list
Exported as: matNavListName | Description |
---|---|
@Input()
|
Whether ripples are disabled. |
MatList
Selector: mat-list mat-action-list
Exported as: matListName | Description |
---|---|
@Input()
|
Whether ripples are disabled. |
MatListItem
An item within a Material Design list.
Selector: mat-list-item a[mat-list-item] button[mat-list-item]
Exported as: matListItemName | Description |
---|---|
@Input()
|
Whether ripples are disabled. |
MatListOption
Component for list-options of selection-list. Each list-option can automatically generate a checkbox and can put current item into the selectionModel of selection-list if the current item is selected.
Selector: mat-list-option
Exported as: matListOptionName | Description |
---|---|
@Input()
|
Whether the label should appear before or after the checkbox. Defaults to 'after' |
@Input()
|
Whether ripples are disabled. |
@Input()
|
Whether the option is disabled. |
@Input()
|
Whether the option is selected. |
@Input()
|
Value of the option |
focus | |
---|---|
Allows for programmatic focusing of the option. |
toggle | |
---|---|
Toggles the selection state of the option. |
MatSelectionList
Material Design list component where each item is a selectable option. Behaves as a listbox.
Selector: mat-selection-list
Exported as: matSelectionListName | Description |
---|---|
@Input()
|
Function used for comparing an option against the selected value when determining which options should appear as selected. The first argument is the value of an options. The second one is a value from the selected value. A boolean must be returned. |
@Input()
|
Whether ripples are disabled. |
@Input()
|
Whether the selection list is disabled. |
@Output()
|
Emits a change event whenever the selected state of an option changes. |
|
The option components contained within this selection-list. |
|
The currently selected options. |
deselectAll | |
---|---|
Deselects all of the options. |
focus | |
---|---|
Focuses the selection list. |
selectAll | |
---|---|
Selects all of the options. |
MatSelectionListChange
Change event that is being fired whenever the selected state of an option changes.
Name | Description |
---|---|
|
Reference to the option that has been changed. |
|
Reference to the selection list that emitted the event. |