Snackbars provide brief messages about app processes at the bottom of the screen.
Name | Type | Description |
---|---|---|
Attributes | Dictionary<String,Object> | Gets or sets a collection of additional attributes that will be applied to the created element. |
ChildContent | RenderFragment | Child content of MatSnackbar |
Class | String | Specifies one or more classnames for an DOM element. |
Id | String | |
IsOpen | Boolean | Controls whether or not the snackbar is shown. |
IsOpenChanged | EventCallback<Boolean> | This event is raised whenever IsOpen changes. |
Leading | Boolean | Displays the snackbar on the "leading edge" of the screen (the left side in LTR, or the right side in RTL). By default, snackbars are centered horizontally within the viewport. On larger screens, they can optionally be displayed on the leading edge by setting this property. |
RefBack | ForwardRef | |
Stacked | Boolean | Positions the action buttons below the label instead of alongside it. |
Style | String | Specifies an inline style for an DOM element. |
Timeout | Int32 | Timeout in ms after which the snackbar closes itself. Default: 10000 ms To leave the snackbar open indefinitely set the timeout to -1 |
Ref | ElementReference | Returned ElementRef reference for DOM element. |
Name | Type | Description |
---|---|---|
Attributes | Dictionary<String,Object> | Gets or sets a collection of additional attributes that will be applied to the created element. |
ChildContent | RenderFragment | Child content of MatSnackbarContent |
Class | String | Specifies one or more classnames for an DOM element. |
Id | String | |
RefBack | ForwardRef | |
Style | String | Specifies an inline style for an DOM element. |
Ref | ElementReference | Returned ElementRef reference for DOM element. |
Name | Type | Description |
---|---|---|
Attributes | Dictionary<String,Object> | Gets or sets a collection of additional attributes that will be applied to the created element. |
ChildContent | RenderFragment | Child content of MatSnackbarActions |
Class | String | Specifies one or more classnames for an DOM element. |
Id | String | |
RefBack | ForwardRef | |
Style | String | Specifies an inline style for an DOM element. |
Ref | ElementReference | Returned ElementRef reference for DOM element. |