JAVASCRIPT
Off-canvas menu
All samples are using Ink.requireModules
, please read how to use it at Ink.requireModules section
Displays off-canvas content which can be triggered by clicking elements with the 'left-drawer-trigger' and 'right-drawer-trigger', respectively.
The left drawer has the 'left-drawer' class, and the right drawer has the 'right-drawer' class. The content drawer (EG your <div id="main">
) must have the 'content-drawer' class. For more, see the example below, or try the sample.
Method name | Description |
---|---|
new Drawer_1([options]) | Constructor |
options
Configuration options.options.mode
'push'This can be 'push' or 'over'.options.sides
'both'Can be 'left', 'right', or 'both'. Controls what sides have a drawer.Example