21.1.1 • Published 9 months ago

@assaabloy/gw-group-toast v21.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

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

9 months ago

21.1.0

10 months ago

21.0.10

1 year ago

21.0.9

1 year ago

21.0.8

2 years ago

21.0.6

2 years ago

21.0.7

2 years ago

21.0.3

3 years ago

21.0.5

3 years ago

21.0.2

3 years ago

21.0.1

3 years ago

21.0.0

3 years ago