Reference Source
import Drawer from 'flarum/utils/Drawer.js'
public class | source

Drawer

The Drawer class controls the page's drawer. The drawer is the area the slides out from the left on mobile devices; it contains the header and the footer.

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

Method Summary

Public Methods
public

hide()

Hide the drawer.

public

Check whether or not the drawer is currently open.

public

show()

Show the drawer.

Public Constructors

public constructor() source

Public Members

public $backdrop: * source

Public Methods

public hide() source

Hide the drawer.

public isOpen(): Boolean source

Check whether or not the drawer is currently open.

Return:

Boolean

public show() source

Show the drawer.