Drawer
Examples
Loading...Web Component
Chi Vue
Props
Events
Methods
JavaScript
This component accepts options to configure its behavior.
Methods
Method | Description | Returns |
---|---|---|
hide() => void | Hides the drawer | Type: void |
show() => void | Shows the drawer | Type: void |
toggle() => void | Toggles active state (show/hide) | Type: void |
Events
Event | Description |
---|---|
chiDrawerShow | Drawer show has been triggered, but the showing animation has not started yet. |
chiDrawerHide | Drawer hide has been triggered, but the closing animation has not started yet. |
chiDrawerShown | Drawer has been shown to the user and is fully visible. The animation has completed. |
chiDrawerHidden | Drawer has been hidden to the user. The animation has completed. |
Preventing memory leaks
Drawer components have a dispose function to free all resources attached to the element, such as event listeners and object data. You should call this method when you want to remove the component.
It is safe to call the drawer
method more than once, as it will return any previously created drawer component associated with the trigger.
Accessibility
Accessibility guidelines coming soon