A global drawer component.
Some of it's features:
- When open pressing
- 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:
Shift-Tabcycles focusable elements.
- When closed the focus is returned to the last focused element before opening (which is usally the one that opened the drawer).
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.
Cancels the drawer.
Hides the drawer.
Renders the drawer.
Shows the component with the given content.
Shows the component with the given content and z-index.