Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SettingsPageElement

Polymer element to manage extension settings

Hierarchy

Index

Constructors

Static constructor

  • Returns SettingsPageElement

Events

onAutoBackupChanged

  • onAutoBackupChanged(): Promise<void>

Protected onChromeMessage

  • onChromeMessage(request: IMsgType, sender: MessageSender, response: ChromeMsg.ResponseCB): boolean

onDarkModeChanged

  • onDarkModeChanged(): void

Properties

Protected autoBackup

Protected darkModeToggle

darkModeToggle: SettingToggleElement

isSignedIn

isSignedIn: boolean = false

Signin state of user

pushEnabled

pushEnabled: boolean = false

Enabled state of message push

Static Protected ERR_CHANGE

ERR_CHANGE: string = "Failed to change setting"

Error message

Accessors

computeAutoSendDisabled

  • get computeAutoSendDisabled(): boolean

Static template

  • get template(): HTMLTemplateElement

Methods

connectedCallback

  • connectedCallback(): void

disconnectedCallback

  • disconnectedCallback(): void

Protected fireEvent

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

    Parameters

    • name: string

      event name

    • Optional detailValue: any

      optional value

    Returns void

onEnterPage

  • onEnterPage(): Promise<void>

onLeavePage

  • onLeavePage(): 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

Static Protected showDialog

  • showDialog(title: string, text: string, method: string): void

Generated using TypeDoc