Options
All
  • Public
  • Public/Protected
  • All
Menu

Polymer element for text entry

Hierarchy

Index

Constructors

Static constructor

  • Returns SettingTextElement

Events

onBlur

  • onBlur(): void
  • Lost focus - fire setting-text-changed event

    Returns void

onKeyUp

  • onKeyUp(ev: KeyboardEvent): void
  • keyup - fire setting-text-changed event on 'Enter'

    Parameters

    • ev: KeyboardEvent

      key event

    Returns void

Properties

Protected disabled

disabled: boolean = false

Disabled state of element

Protected mainLabel

mainLabel: string

Descriptive label

Protected maxLength

maxLength: number = 16

Max length of text entry

Protected name

name: string = "store"

Element name

Protected noseparator

noseparator: boolean = false

Visibility state of optional divider

Protected placeholder

placeholder: string = "e.g. Text"

Placeholder text when empty

Protected secondaryLabel

secondaryLabel: string

Secondary descriptive label

Protected sectionTitle

sectionTitle: string = ""

Optional group title

Protected value

value: string = ""

Text value

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

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