mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
parent
ed90e2d651
commit
a8dc742cd1
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
# Toast notifications
|
||||
|
||||
Use this service to surface toasts in the bottom-right corner of the screen. After a brief delay, they'll disappear. They're useful for notifying the user of state changes. See [the EUI docs](elastic.github.io/eui/) for more information on toasts and their role within the UI.
|
||||
Use this service to surface toasts in the bottom-right corner of the screen. After a brief delay, they'll disappear. They're useful for notifying the user of state changes. See [the EUI docs](https://elastic.github.io/eui/) for more information on toasts and their role within the UI.
|
||||
|
||||
## Importing the module
|
||||
|
||||
|
@ -57,7 +57,7 @@ toastNotifications.remove(toast);
|
|||
|
||||
### Configuration options
|
||||
|
||||
If you want to configure the toast further you can provide an object instead of a string. The properties of this object correspond to the `propTypes` accepted by the `EuiToast` component. Refer to [the EUI docs](elastic.github.io/eui/) for info on these `propTypes`.
|
||||
If you want to configure the toast further you can provide an object instead of a string. The properties of this object correspond to the `propTypes` accepted by the `EuiToast` component. Refer to [the EUI docs](https://elastic.github.io/eui/) for info on these `propTypes`.
|
||||
|
||||
```js
|
||||
toastNotifications.add({
|
||||
|
@ -97,4 +97,4 @@ toastNotifications.addSuccess({
|
|||
title: 'Saved document',
|
||||
'data-test-subj': 'saveDocumentSuccess',
|
||||
});
|
||||
```
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue