| Package | Description |
|---|---|
| org.dominokit.domino.ui.alerts |
| Modifier and Type | Method and Description |
|---|---|
Alert |
Alert.appendChild(AlertLink alertLink)
Adds
AlertLink as a child |
Alert |
Alert.appendChild(elemental2.dom.HTMLAnchorElement anchorElement)
Adds anchor element as a child, this method adds
Styles.alert_link style to anchor
element by default |
Alert |
Alert.appendChild(String text)
Adds text as a child, the
text will be added in TextNode |
Alert |
Alert.appendChild(Strong strong)
Adds
Strong as a child |
static Alert |
Alert.create()
Creates alert with default style
|
static Alert |
Alert.create(Color background)
Creates alert with background color
|
Alert |
Alert.dismissible()
Sets the alert to closable and a close button will be added to the element to hide it
|
static Alert |
Alert.error()
Creates alert with error severity
|
static Alert |
Alert.info()
Creates alert with info severity
|
Alert |
Alert.setBackground(Color background) |
Alert |
Alert.setDismissible(boolean dismissible)
Passing true means that the alert will be closable and a close button will be added to the
element to hide it
|
Alert |
Alert.setDissmissible(boolean dismissible)
Deprecated.
|
static Alert |
Alert.success()
Creates alert with success severity
|
Alert |
Alert.unDismissible()
Sets the alert to not closable and the close button will be removed if exist, the alert can be
hidden programmatically using
BaseDominoElement.remove() |
static Alert |
Alert.warning()
Creates alert with warning severity
|
Copyright © 2019–2022 Dominokit. All rights reserved.