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.
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:
require('aui/inline-dialog2')
Experimental API:
5.7
General API:
5.9
Web Component API:
5.9
Behaviour
Triggering
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
are either button or a
Associate a trigger (data-aui-trigger) to an
inline dialog by setting the trigger element's aria-controls
attribute to the id of the inline dialog:
As an accessibility enhancement, giving an inline dialog's trigger
focus will also enable hovering behaviour.
Closing
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.
An inline dialog's alignment cannot be changed once the
inline dialog has been opened. However, it will continue to be
responsive to space constraints.
Space-constrained alignment
If there is not enough room to display an inline dialog with the desired
alignment the inline dialog will flip alignment.
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 false.
persistent
is an attribute
is a property
Boolean
Specifies that an inline dialog is persistent. Persistent inline dialogs cannot be closed by outside click or escape.
Defaults to false.
responds-to
is an attribute
is a property
String
Determines the type of interaction a trigger will have with its inline dialog.
Values:
toggledefault - will respond to click event on the trigger.
hover - will respond to mouseover, mouseout, focus, blur events on the trigger.
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 dialog element 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.