Options
All
  • Public
  • Public/Protected
  • All
Menu

Link generates an element.

Hierarchy

Implements

  • Widget

Index

Constructors

Properties

Methods

Object literals

Constructors

constructor

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

    Parameters

    Returns Link

Properties

attrs

children

children: Content[]

href

href: string = (this.attrs.ww && this.attrs.ww.href) ?this.attrs.ww.href : ''

href assigned to this Link

name

name: string = (this.attrs.ww && this.attrs.ww.name) ?this.attrs.ww.name : ''

name assigned to this Link.

title

title: string = (this.attrs.ww && this.attrs.ww.title) ?this.attrs.ww.title : ''

title assigned to this Link.

view

view: View = new views.Main(this)

Methods

activate

deactivate

  • deactivate(): Link

removed

  • removed(): void
  • Returns void

render

  • render(): Content
  • Returns Content

rendered

  • rendered(): void
  • Returns void

Object literals

values

values: object

a

a: object

active

active: boolean = (this.attrs.ww && this.attrs.ww.active) ?this.attrs.ww.active : false

class

class: string = concat(LINK,this.attrs.ww ? this.attrs.ww.class : '',(this.attrs.ww && this.attrs.ww.active) ?ACTIVE : '')

disabled

disabled: boolean = this.attrs.ww.disabled || null

href

href: string = (this.attrs.ww && this.attrs.ww.href) ?this.attrs.ww.href : '#'

id

id: string = "root"

name

name: string = (this.attrs.ww && this.attrs.ww.name) ?this.attrs.ww.name : null

title

title: string = (this.attrs.ww && this.attrs.ww.title) ?this.attrs.ww.title : null

clicked

  • clicked(e: Event): void

content

  • content(): string | (Node | Element | HTMLElement)[]

Generated using TypeDoc