@assaabloy/gw-group-toast

21.0.10 • Public • Published

ASSA ABLOY Global web - web components

Toast

Custom HTML element

<gw-group-toast></gw-group-toast>

Event Listener

This component is listening on a CustomEvent named 'showToast'. You can dispatch an event like so:

document.dispatchEvent(new CustomEvent('showToast', {detail: {text: 'Hello Johan! You are now logged in.', eventType: 'SUCCESS', time: 3000}}))

Properties that can be sent with the event are:

  • text - the text that will be displayed.
  • eventType - controls the background color of the toast. Possible values are 'SUCCESS' and 'ERROR'.
  • time - time in ms that the toast will be shown.

/@assaabloy/gw-group-toast/

    Package Sidebar

    Install

    npm i @assaabloy/gw-group-toast

    Weekly Downloads

    64

    Version

    21.0.10

    License

    MIT

    Unpacked Size

    5.9 kB

    Total Files

    4

    Last publish

    Collaborators

    • yadamska
    • dzianis-mantsevich
    • dhanashree.mane
    • nikitajadwa
    • sandeepsharma04
    • christiangolcic
    • matijakosmac
    • pdehne-steidle
    • olofsellgren
    • johan.alexandersson