@ivanvanderbyl/ember-material-components-snackbar

0.77.1-alpha.2 • Public • Published

@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.

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

    Package Sidebar

    Install

    npm i @ivanvanderbyl/ember-material-components-snackbar

    Weekly Downloads

    1

    Version

    0.77.1-alpha.2

    License

    Apache-2.0

    Unpacked Size

    81.2 kB

    Total Files

    27

    Last publish

    Collaborators

    • ivanvanderbyl