0.77.1-alpha.2 • Published 5 years ago

@ivanvanderbyl/ember-material-components-snackbar v0.77.1-alpha.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 years ago

@ivanvanderbyl/ember-material-components-snackbar

ember-cli addon for @material/snackbar.

Installation

ember install @ivanvanderbyl/ember-material-components-snackbar

Components and Mixins

Components

{{mdc-snackbar}}

Description

Display a snackbar on the page.

Usage

{{mdc-snackbar message=[string]
               timeout=[number]
               actionHandler=action
               actionText=[string]
               multiline=[true|false]
               actionOnBottom=[true|false]
               dismissesOnAction=[true|false]}}

Attributes

  • message - The message to display in the snackbar. Changing the message automatically shows the snackbar.
  • timeout - Optional timeout for the snackbar.
  • actionHandler - Callback invoked when the action is clicked.
  • actionText - The text to display for the action.
  • multiline - The snackbar is multiple lines.
  • actionOnBottom - Align the action to the bottom of a multi-line message.
  • dismissesOnAction Dismiss in the snackbar after the action is clicked.