Pages
Ui.Drawer
A global drawer component.
Some of it's features:
- When open pressing
Esc
closes it. - After opening it will focus the first focusable item.
- Showing it returns a promise which is resolved when its closed or rejected when cancelled.
- The keyboard focus is trapped in the list:
Tab
andShift-Tab
cycles focusable elements. - When closed the focus is returned to the last focused element before opening (which is usally the one that opened the drawer).
States
The content of the drawer.
The previously focused element.
The minimum width of the drawer.
Whether or not the drawer is open.
The reject function.
The resolve function.
The transition duration.
The z-index of the drawer.
Functions
Cancels the drawer.
Hides the drawer.
Renders the drawer.
Shows the component with the given content.
showWithOptions
(
content
:
Html
zIndex
:
Number
transitionDuration
:
Number
minWidth
:
String
openCallback
:
Function(Promise(Never, Void))
)
:
Promise(Ui.Drawer.Cancelled, Void)
Shows the component with the given content and z-index.