Snackbar

Snackbar

new Snackbar()

Source:
Properties:
Name Type Description
selectors object

Set of selectors that can be used to select snackbar features.

states object

Set of classes that serve as flags for snackbar states.

template string

Snackbar markup template.

settings object

Set of settings that can be used to customize the snackbar.

$element element

DOM reference to the snackbar element.

$element element

DOM reference to the snackbar container (i.e. the body element).

height int

Snackbar height (used to compute transitions).

startY int

Initial cursor Y position when swiping (to compute swipe dismiss gesture).

Handles Material-UI style Snackbar prompts that slide in at the bottom of the page

Snackbar

new Snackbar(settings)

Source:
Parameters:
Name Type Description
settings object

Snackbar settings to be merged with defaults