Options
All
  • Public
  • Public/Protected
  • All
Menu

DrawerLayout provides a 1 column application layout with a drawer that can be shown or hidden upon requests.

The drawer takes up most of the screen on mobile and about roughly 1/6 - 1/8 on a desktop (not fact checked yet).

Mobile: +------------------------------------------------------------------------------+ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | +------------------------------------------------------------------------------+

Desktop: +------------------------------------------------------------------------------+ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | +------------------------------------------------------------------------------+

Hierarchy

Implements

Index

Constructors

constructor

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

    Parameters

    Returns DrawerLayout

Properties

attrs

children

children: Content[]

view

view: View = new Main(this)

Methods

hide

isHidden

  • isHidden(): boolean

removeContent

  • removeContent(): this

removed

  • removed(): void
  • Returns void

render

  • render(): Content
  • Returns Content

rendered

  • rendered(): void
  • Returns void

setContent

  • setContent(c: Content): this

show

toggle

Object literals

values

values: object

values is a hash of values used in the template.

content

content: object

id

id: string = "content"

render

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

drawer

drawer: object

content

content: View = (this.attrs.ww && this.attrs.ww.drawer) ? this.attrs.ww.drawer : null

id

id: string = "drawer"

root

root: object

class

class: string = concat(DRAWER_LAYOUT, LAYOUT, this.attrs.ww && this.attrs.ww.class)

Generated using TypeDoc