Options
All
  • Public
  • Public/Protected
  • All
Menu

DropDown provides a component for displaying a pop up menu.

+--------+ | Menu | +--------+ +-------------------------+ | | | ----------------------- | | | | ----------------------- | | | | ----------------------- | | | +-------------------------+

Hierarchy

Implements

Index

Constructors

Properties

Methods

Object literals

Constructors

constructor

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

    Parameters

    Returns DropDown

Properties

attrs

children

children: Content[]

hide

hide: hidden.Hide<DropDown> = hidden.hide(this)(content(this))

isHidden

isHidden: hidden.IsHidden = hidden.isHidden(content(this))

show

show: hidden.Show<DropDown> = hidden.show(this)(content(this))

toggle

toggle: hidden.Toggle<DropDown> = hidden.toggle(this)(content(this))

view

view: View = new views.Main(this)

Methods

handleEvent

  • handleEvent(e: Event): void

removed

  • removed(): void
  • Returns void

render

  • render(): Content
  • Returns Content

rendered

  • rendered(): void
  • Returns void

Object literals

values

values: object

button

button: object

class

class: string = style.DEFAULT

text

text: string = this.attrs.ww.buttonText ? this.attrs.ww.buttonText : ''

template

content

content: object

autoClose

autoClose: boolean = (this.attrs.ww.autoClose === false) ? false : true

class

class: string = concat(DROP_DOWN_CONTENT, hidden.HIDDEN)

id

id: string = "content"

render

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

root

root: object

class

class: string = concat(DROP_DOWN, (this.attrs.ww && this.attrs.ww.class) ?this.attrs.ww.class : '')

id

id: string = "root"

toggle

toggle: object

class

class: string = concat(DROP_DOWN_TOGGLE, style.PRIMARY)

onClick

  • onClick(): void

Generated using TypeDoc