Popup

Drawer instances are created by the Viewer when calling the method viewer.addDrawer().

drawer.getSide()

Gets the side of the viewer on which the drawer is positioned, either left, right, top or bottom.

drawer.setContent(content)

Sets the content of the drawer.

drawer.setSize(size)

Sets the pixel width of a left or right drawer, or the pixel height of a top or bottom drawer.

drawer.isOpen()

Returns true if the drawer is currently open.

drawer.setOpen(open)

Opens or closes the drawer.

drawer.setAutoClose(autoClose)

Sets whether this drawer will close when another drawer is opened.

drawer.setCloseButton(closeButton)

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.