import {MatButtonToggleModule} from '@angular/material/button-toggle';
MatButtonToggleGroup
Exclusive selection button toggle group that behaves like a radio-button group.
Selector: mat-button-toggle-group:not([multiple])
Exported as: matButtonToggleGroupName | Description |
---|---|
@Input()
| Whether the component is disabled. |
@Input()
|
|
@Input()
| The currently selected button toggle, should match the value. |
@Input()
| Value of the toggle group. |
@Input()
| Whether the toggle group is vertical. |
@Output()
| Event emitted when the group's value changes. |
MatButtonToggleGroupMultiple
Multiple selection button-toggle group. ngModel
is not supported in this mode.
Selector: mat-button-toggle-group[multiple]
Exported as: matButtonToggleGroupName | Description |
---|---|
@Input()
| Whether the component is disabled. |
@Input()
| Whether the toggle group is vertical. |
MatButtonToggle
Single button inside of a toggle group.
Selector: mat-button-toggle
Exported as: matButtonToggleName | Description |
---|---|
@Input('aria-label')
| Attached to the aria-label attribute of the host element. In most cases, arial-labelledby will take precedence so this may be omitted. |
@Input('aria-labelledby')
| Users can specify the |
@Input()
| Whether the button is checked. |
@Input()
| Whether the button is disabled. |
@Input()
| The unique ID for this button toggle. |
@Input()
| HTML's 'name' attribute used to group radios for unique selection. |
@Input()
| MatButtonToggleGroup reads this to assign its own value. |
@Output()
| Event emitted when the group value changes. |
| The parent button toggle group (exclusive selection). Optional. |
| The parent button toggle group (multiple selection). Optional. |
| Unique ID for the underlying |
focus | |
---|---|
Focuses the button. |
MatButtonToggleChange
Change event object emitted by MatButtonToggle.
Name | Description |
---|---|
| The MatButtonToggle that emits the event. |
| The value assigned to the MatButtonToggle. |