snackbar

package
v0.2.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 3 Imported by: 1

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) IsOpen

func (s *SnackBar) IsOpen() bool

func (*SnackBar) OnMount

func (s *SnackBar) OnMount(ctx app.Context)

func (*SnackBar) Render

func (s *SnackBar) Render() app.UI

func (*SnackBar) TimeoutMs

func (s *SnackBar) TimeoutMs(ms int) app.Value

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL