Popup
Drawer instances are created by the Viewer when calling the method viewer.addDrawer().
drawer.getSide()drawer.setContent(content)drawer.setSize(size)drawer.isOpen()drawer.setOpen(open)drawer.setAutoClose(autoClose)drawer.setCloseButton(closeButton)drawer.setCloseOnClick(closeOnClick)drawer.remove()
drawer.getSide()
- Returns: <string>
Gets the side of the viewer on which the drawer is positioned, either left, right, top or bottom.
drawer.setContent(content)
content: <string>
Sets the content of the drawer.
drawer.setSize(size)
size: <number>
Sets the pixel width of a left or right drawer, or the pixel height of a top or bottom drawer.
drawer.isOpen()
- Returns: <boolean>
Returns true if the drawer is currently open.
drawer.setOpen(open)
open: <boolean>
Opens or closes the drawer.
drawer.setAutoClose(autoClose)
autoClose: <boolean>
Sets whether this drawer will close when another drawer is opened.
drawer.setCloseButton(closeButton)
closeButton: <boolean>
Sets whether this drawer should display a close button.
drawer.setCloseOnClick(closeOnClick)
Sets whether this drawer should close when clicking anywhere.
drawer.remove()
Removes the drawer.