Options
All
  • Public
  • Public/Protected
  • All
Menu

Drawer provides a widget for displaying navigation and other sidebar content.

It's api allows for toggling between hidden and shown states as well as querying the current state.

This widget's style intentionally gives it a high z-index so that it appears in-front of other content. Adjust the respective style variables to change.

Hierarchy

Implements

Index

Constructors

constructor

  • children is an array of content passed to this Component.

    Parameters

    Returns Drawer

Properties

attrs

children

children: Content[]

content

content: Content

content is dynamic content that can be changed after the Widget has been rendered. It's up to the respective template to utilize this property or ignore it.

hide

hide: Hide<Drawer> = hide<Drawer>(this)(getDom(this))

isHidden

isHidden: IsHidden = isHidden(getDom(this))

show

show: Show<Drawer> = show(this)(getDom(this))

toggle

toggle: Toggle<Drawer> = toggle(this)(getDom(this))

view

view: View = new Main(this)

Methods

removeContent

removed

  • removed(): void
  • Returns void

render

  • render(): Content
  • Returns Content

rendered

  • rendered(): void
  • Returns void

setContent

Object literals

values

values: object

values is a hash of values used in the template

content

content: object

class

class: string = DRAWER_CONTENT

render

  • render(): Node | (Node | Element | HTMLElement)[]

root

root: object

class

class: string = DRAWER

id

id: string = "drawer"

Generated using TypeDoc