Optional
animationAnimation duration in milliseconds
Optional
breakpointBreakpoint for responsive behavior (in pixels)
Optional
classThe class name(s) for this virtual element, as a space-separated list.
Optional
classCustom class for the sidenav
Optional
closeClose sidenav when backdrop is clicked
Optional
closeClose sidenav when escape key is pressed
Optional
fixedFixed sidenav (always visible on larger screens)
Optional
idUnique ID for the sidenav
Optional
isWhether the sidenav is open
Optional
keyA key to optionally associate with this element.
Optional
modeWhether sidenav should overlay content or push it
Optional
onCallback when sidenav open state changes
Optional
positionPosition of the sidenav
Optional
showWhether to show backdrop overlay
Optional
widthWidth of the sidenav in pixels
Optional
onbeforeremoveThe onbeforeremove hook is called before a DOM element is detached from the document. If a Promise is returned, Mithril only detaches the DOM element after the promise completes.
Optional
onbeforeupdateThe onbeforeupdate hook is called before a vnode is diffed in a update.
Optional
oncreateThe oncreate hook is called after a DOM element is created and attached to the document.
Optional
oninitThe oninit hook is called before a vnode is touched by the virtual DOM engine.
Optional
onremoveThe onremove hook is called before a DOM element is removed from the document.
Optional
onupdateThe onupdate hook is called after a DOM element is updated, while attached to the document.
Any other virtual element properties, including attributes and event handlers.