2021-11-24 18:14:07 +00:00
|
|
|
# notification
|
|
|
|
|
|
|
|
Consul UIs notification modifier is used to 'hoist' DOM elements into the
|
|
|
|
global notification area for the UI. The most common usage will be something
|
|
|
|
like the below:
|
|
|
|
|
|
|
|
```hbs preview-template
|
|
|
|
<figure>
|
|
|
|
<figcaption>Attach a Warning notice to the top of the app ^^^</figcaption>
|
2023-03-06 22:10:09 +00:00
|
|
|
<Hds::Toast
|
|
|
|
@color='warning'
|
|
|
|
{{notification
|
|
|
|
sticky=true
|
|
|
|
}}
|
|
|
|
as |T|>
|
|
|
|
<T.Title>Warning!</T.Title>
|
|
|
|
<T.Description>
|
2021-11-24 18:14:07 +00:00
|
|
|
This service has been deregistered and no longer exists in the catalog.
|
2023-03-06 22:10:09 +00:00
|
|
|
</T.Description>
|
|
|
|
</Hds::Toast>
|
2021-11-24 18:14:07 +00:00
|
|
|
</figure>
|
|
|
|
```
|
|
|
|
|
|
|
|
Currently this is backed by `ember-cli-flash` and the named options are
|
|
|
|
currently options that can be accepted by `ember-cli-flash`. Be aware that this
|
|
|
|
is likely to change in the future.
|
|
|
|
|