Documentation
¶
Index ¶
Constants ¶
View Source
const TimeoutMsField = "timeoutMs"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event string
const ActionButtonText Event = "MDCSnackbar:actionButtonText"
const Close Event = "MDCSnackbar:close"
const Closed Event = "MDCSnackbar:closed"
const Closing Event = "MDCSnackbar:closing"
const LabelText Event = "MDCSnackbar:labelText"
const Open Event = "MDCSnackbar:open"
const Opened Event = "MDCSnackbar:opened"
const Opening Event = "MDCSnackbar:opening"
type SnackBar ¶
type SnackBar struct { app.Compo base.JsUtil autoinit.AutoInit Leading bool Stacked bool LabelText string ActionButtonText string // contains filtered or unexported fields }
func (*SnackBar) TimeoutMs ¶
TimeoutMs sets the value of MDCSnackbar.timeoutMs and returns the current value.
Per the api documentation, the following ranges are valid. When outside the range, the api value is not set, but the current value is still returned. i.e. calling with 0 can be used for reading the current value.
-1 no timeout 4000 minimum ms value 10000 max ms value
Click to show internal directories.
Click to hide internal directories.