Options
All
  • Public
  • Public/Protected
  • All
Menu

Polymer element for a url link

Hierarchy

Index

Constructors

Static constructor

  • Returns SettingSliderElement

Events

onSliderValueChanged

  • onSliderValueChanged(): void
  • User changed slider value

    Returns void

onUnitMenuSelected

  • onUnitMenuSelected(ev: Event): void
  • Unit menu item tapped

    Parameters

    • ev: Event

    Returns void

Properties

Protected disabled

disabled: boolean = false

Disabled state of element

Protected label

label: string = ""

Descriptive label

Protected list

list: PaperListboxElement

paper-listbox of units

Protected name

name: string = "store"

Element name

Protected noseparator

noseparator: boolean = false

Visibility state of optional divider

Protected sectionTitle

sectionTitle: string = ""

Optional group title

Protected template

template: DomRepeat

paper-listbox template

Protected unitIdx

unitIdx: number = 1

Current unit array index

remarks

TODO - needs permanent fix Set this to 1 instead of 0 because of obscure bug caused by transitionTime minimum in seconds (index 0) being larger than the others

Protected units

units: IUnitType[] = []

Array of IUnitType

Accessors

Static mainContent

  • get mainContent(): HTMLTemplateElement
  • Override mainContent from SettingBase

    Returns HTMLTemplateElement

Static template

  • get template(): HTMLTemplateElement
  • Returns HTMLTemplateElement

Methods

Protected _valueChanged

  • Simple Observer: Value changed

    Parameters

    Returns void

Protected fireEvent

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

    Parameters

    • name: string

      event name

    • Optional detailValue: any

      optional value

    Returns void

ready

  • ready(): void
  • Called during Polymer-specific element initialization. Called once, the first time the element is attached to the document.

    Returns void

Protected setBase

  • setBase(): void
  • Set the base value

    Returns void

Protected unitIdxChanged

  • unitIdxChanged(newValue: number): void
  • Selected unit id changed

    Parameters

    • newValue: number

    Returns 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

Object literals

Protected unit

unit: object

The current @link {IUnitType}

max

max: number = 1000

min

min: number = 0

mult

mult: number = 1

name

name: string = "unknown"

step

step: number = 1

Protected value

value: object

Unit value

base

base: number = 10

display

display: number = 10

unit

unit: number = 0

Generated using TypeDoc