wv-drawer
Purpose
<wv-drawer/>
. Presents a sliding from the right container. The element is operated with the help of JS Event it listens to.
Properties
name | description |
---|---|
body-class |
object type: default value: is required: A CSS class to be added to the general classes of the element's body. |
class |
object type: default value: is required: A CSS class to be added to the general classes of the element. |
id |
object type: default value: is required: Html ID you may need to set to the rendered element |
title |
object type: default value: is required: The title of the drawer. |
title-action-html |
object type: default value: is required: Html to be rendered on the right of the title |
width |
object type: default value: is required: If provided, it will be added as a CSS style width value of the element. |
Javascript Event Listeners
action | description |
---|---|
open or show |
This action will open the drawer. Example:
If there are one or more drawers on the page you need to set the correct
|
close or hide |
This action will close the drawer. Example:
If there are one or more drawers on the page you need to set the correct
|
Example
<wv-drawer id="my-drawer" title="This is a drawer">...</wv-drawer>