The Drawer provides a set of modes for handling the way it is displayed.
The overlay mode is not associated with any content. The Drawer appears on top of the page contents from the side which is configured in the
Position() method. To show the Drawer, either swipe or drag with mouse or call the client-side
show() method of the Drawer. The Drawer closes on click or tap of any of the options or on the overlay.
The push mode is associated with specific page content and the element from which the widget is initialized has to wrap that content. When the drawer opens it will push that content to the side. It is designed for wider screens (desktop or tablet). To show the Drawer, either swipe or drag with mouse, or call the client-side
show() method of the Drawer. The Drawer closes on click or tap of any of the options or on the associated content.
The height of the Drawer is determined by the higher content of the template of the widget or of the wrapped content with which it is associated. You can use the
MinHeight() method to prevent the content from changing its height as the user toggles the drawer options.
You can use the
Mini() option both with the overlay and push modes by adding a the
Mini() method. If set to
true, a portion of the Drawer that is always visible occupies the default width of
50px and the main template. If the
Mini() configurator is used, the
TemplateId() can also be changed.
<mini width="100" template-id="mini-template"/>