AUI Documentation
Inline dialog
Ask a question Design guidelinesSummary
The inline dialog is a wrapper 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.
A 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.
Status
API status: | general |
---|---|
Included in AUI core? | Not in core You must explicitly require the web resource key. |
Web resource key: | com.atlassian.auiplugin:aui-inline-dialog2
|
AMD Module key: | N/A |
Experimental since: | 5.7 |
General API status: | 5.9 |
Examples
Code
The HTML component is simply a trigger with an ID, which can be used by Inline Dialog's JavaScript.
<a data-aui-trigger href="#" aria-controls="inline-dialog-wc-1">Inline dialog trigger</a>
<aui-inline-dialog id="inline-dialog-wc-1" alignment="bottom center">
Inline dialog content example.
</aui-inline-dialog>
Attributes and properties
Name | Attribute | Property | Type | Description |
---|---|---|---|---|
id |
String |
Required when using a Trigger to interact with the Inline Dialog but not required for the Inline Dialog to function. Defaults to |
||
alignment |
String |
Specifies the inline dialog's alignment with respect to its trigger. The inline dialog is not positioned if this is not specified. Defaults to Show all values |
||
open |
Boolean |
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. Defaults to |
||
persistent |
Boolean |
Specifies that the inline dialog is persistent. Persistent inline dialogs cannot be closed by outside click or escape. Defaults to |
||
responds-to |
String |
Determines the type of interaction a trigger will have with the inline dialog. Values:
|
Methods
There are no methods.
Events
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 dialog2 component for instance specific events, or rely on event bubbling and bind to the document to receive events for every show and hide.
Event | Description | Preventable | Bubbles |
---|---|---|---|
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 |