Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LabelsPageElement

Polymer element to manage our Label objects

Hierarchy

Index

Constructors

Static constructor

  • Returns LabelsPageElement

Events

onAddKeyUp

  • onAddKeyUp(ev: KeyboardEvent): Promise<void>

onAddTapped

  • onAddTapped(): Promise<void>

Protected onDeleteTapped

  • onDeleteTapped(ev: any): Promise<void>

Protected onListItemBlur

  • onListItemBlur(ev: any): Promise<void>

Protected onListItemKeyUp

  • onListItemKeyUp(ev: any): Promise<void>

Properties

Protected addButton

addButton: PaperButtonElement

addText

addText: string = ""

Text for new label

items

items: IItem[] = []

Array of labels

Accessors

Static template

  • get template(): HTMLTemplateElement

Methods

Protected addLabel

  • addLabel(): Promise<void>

Protected addTextChanged

  • addTextChanged(): void

Protected fireEvent

  • fireEvent(name: string, detailValue?: any): void
  • Dispatch an event

    Parameters

    • name: string

      event name

    • Optional detailValue: any

      optional value

    Returns void

Protected itemsChanged

  • itemsChanged(changeRecord: PolymerDeepPropertyChange<IItem[], void>): void

Protected loadLabels

  • loadLabels(): Promise<void>

onEnterPage

  • onEnterPage(): Promise<void>

onLeavePage

  • onLeavePage(): Promise<void>

Protected sortByName

Protected updateListLabel

  • updateListLabel(item: IItem): Promise<void>

Static localize

  • localize(name: string, def?: undefined | string): string
  • Localize a string

    Parameters

    • name: string

      name from _locales

    • Optional def: undefined | string

      optional default value if name not found

    Returns string

Generated using TypeDoc