UI
confirmationDialog.openConsequential(options) / openDestructive(options)
Opens a consequential or destructive confirmation dialog.
Usage:
window.e.utils.v2.ui.confirmationDialog.openConsequential(options)window.e.utils.v2.ui.confirmationDialog.openDestructive(options)
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
headline | string | HTMLElement | yes | — | Dialog title (sanitized by default) |
content | string | HTMLElement | yes | — | Dialog content (sanitized by default) |
disableSanitization | boolean | no | false | Disable automatic HTML sanitization |
confirm.label | string | no | "OK" | Confirm button label |
createPopup(openerElement, contentElement, options)
Creates a popup anchored to an opener element. Returns an object with open, close, and toggle methods.
Usage: window.e.utils.v2.ui.createPopup(openerElement, contentElement, options)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
openerElement | HTMLElement | yes | The element that triggers the popup |
contentElement | HTMLElement | yes | The popup content |
options | object | yes | Configuration options |
Options
| Name | Default | Description |
|---|---|---|
placement | 'bottom' | Where to open content relative to opener |
arrow | true | Toggles arrow rendering |
offset | 12 | Distance between reference and content |
noPadding | — | Disables padding on popup |
Methods: open(), close(), toggle()
dialog({ content, width })
Opens a custom dialog with given content. Returns a dialog reference with open and close methods.
Usage: window.e.utils.v2.ui.dialog({ content, width })
Parameters
| Name | Type | Description |
|---|---|---|
content | string | DOM node | Dialog content |
width | string | Width in any CSS metric |
float(element)
Opens the given element in the float container.
Usage: window.e.utils.v2.ui.float(element)
openNotification(options)
Opens a notification on the top window. Returns a notification reference.
Usage: window.e.utils.v2.ui.openNotification(options)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
content | string | object | yes | Notification content |
content.type | 'text' | 'html' | yes | How content is rendered |
busyIndicator.show(options) / busyIndicator.hide()
Shows or hides a fullscreen busy indicator covering the whole page.
Usage:
window.e.utils.v2.ui.busyIndicator.show(options)window.e.utils.v2.ui.busyIndicator.hide()
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
isGlobal | boolean | false | Display outside the iframe (fullscreen) with a different look |