Options
All
  • Public
  • Public/Protected
  • All
Menu

Polymer element for a toggle button

Hierarchy

Index

Constructors

Static constructor

  • Returns SettingToggleElement

Events

onChange

  • onChange(): void
  • Checked state changed

    Returns void

onTap

  • onTap(ev: Event): void
  • Item tapped

    Parameters

    • ev: Event

    Returns void

Properties

checked

checked: boolean

Checked state

Protected disabled

disabled: boolean = false

Disabled state of element

Protected mainLabel

mainLabel: string

Descriptive label

Protected name

name: string = "store"

Element name

Protected noseparator

noseparator: boolean = false

Visibility state of optional divider

Protected secondaryLabel

secondaryLabel: string

Secondary descriptive label

Protected sectionTitle

sectionTitle: string = ""

Optional group title

Accessors

Static mainContent

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

    Returns HTMLTemplateElement

Static template

  • get template(): HTMLTemplateElement
  • Returns HTMLTemplateElement

Methods

Protected fireEvent

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

    Parameters

    • name: string

      event name

    • Optional detailValue: any

      optional value

    Returns void

setChecked

  • setChecked(checked: boolean): void
  • Set the checked state of the toggle

    Parameters

    • checked: boolean

      checked state

    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

Generated using TypeDoc