Options
All
  • Public
  • Public/Protected
  • All
Menu

TabLayout provides a layout whose displayed content can be changed via tabs.


| | | Tab1 | Tab2 | Tab2 |

| |

| | | | | | | | | | | | | | |__|

Hierarchy

Implements

Index

Constructors

Properties

Methods

Object literals

Constructors

constructor

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

    Parameters

    Returns TabLayout

Properties

attrs

children

children: Content[]

view

view: View = new views.Main(this)

Methods

removeContent

  • removeContent(): this

removed

  • removed(): void
  • Returns void

render

  • render(): Content
  • Returns Content

rendered

  • rendered(): void
  • Returns void

setContent

  • setContent(c: Content): this

Object literals

values

values: object

content

content: function = Maybe.fromAny(this.attrs.ww.tabs[this.attrs.ww.active]).orElse(() => Maybe.fromAny(this.attrs.ww.tabs[Object.keys(this.attrs.ww.tabs)[0]])).map((ts: TabSpec) => ts.contentTemplate).get()

Type declaration

tab

tab: string = (this.attrs.ww && this.attrs.ww.active) || Object.keys(this.attrs.ww.tabs)[0]

tabs

tabs: TabSpecMap = <TabSpecMap>this.attrs.ww.tabs

onClick

root

root: object

class

class: string = concat(TAB_LAYOUT, LAYOUT)

Generated using TypeDoc