A container for secondary content/controls to be displayed on user request. Consider this component as displayed in context to the triggering control with the dialog overlaying the page content.
An inline dialog should be preferred over a modal dialog when a connection between the action has a clear benefit versus having a lower user focus.
|Web resource key:||
|AMD Module key:||
|Web Component API:||5.9|
An inline dialog can be opened by a Trigger element.
Any interactive element can be made in to a trigger — the typical elements to use
Associate a trigger (
data-aui-trigger) to an
inline dialog by setting the trigger element's
attribute to the
id of the inline dialog:
An inline dialog will, by default, open when a user clicks its trigger, but can be made to open:
To programmatically open an inline dialog, set its
open property or add the
Opening at page load
To make an inline dialog open at page load, simply specify the
open boolean attribute:
Opening by hovering over the trigger deprecated
Make an inline dialog show when hovering over the trigger by setting
the inline dialog's
Or by setting the
Inline dialogs will automatically close when the user clicks outside the inline dialog or presses ESC. Inline dialogs that open on hover close when the user stops hovering over either the trigger or the inline dialog itself.
To programmatically close an inline dialog, set its
property or remove its
Prevent automatic closing
Inline dialogs can be forced to remain open via the
persistent boolean attribute:
Or by setting the
Make sure you set
aui-inline-dialog element to give screen reader friendly
description of the the dialog's content.
When aria-label is missing the AT will read whole content of the dialog.
An inline dialog can be aligned, relative to its trigger, along twelve different points, via the
alignment attribute takes two positional arguments
(deprecated - arrows will be removed in AUI 10)
in the format
alignment="edge edge-position", where
edgespecifies what edge to align the inline dialog's arrow to, and
edge-positionspecifies where on that edge the arrow should appear.
reference for all valid combinations, or test the combinations below:
If there is not enough room to display an inline dialog with the desired alignment the inline dialog will flip alignment.
Attributes and properties
Required when using a trigger to interact with an inline dialog but not required for the inline dialog to function.
Specifies an inline dialog's alignment with respect to its trigger. The inline dialog is not positioned if this is not specified.
When set it either hides or shows the element based on whether the incoming value is falsy or truthy. When accessed it will return whether or not the inline dialog is open.
Specifies that an inline dialog is persistent. Persistent inline dialogs cannot be closed by outside click or escape.
Determines the type of interaction a trigger will have with its inline dialog.
Events are triggered when inline dialogs are shown and hidden. These events are triggered natively on the component. You can bind to the the inline dialog element for instance specific events, or rely on event bubbling and bind to the document to receive events for every show and hide.
|aui-show||Triggered before an inline dialog instance is shown.||Yes. Prevents it from showing.||Yes|
|aui-hide||Triggered before an inline dialog instance is hidden.||Yes. Prevents it from hiding.||Yes|