Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DevicesPageElement

Polymer element to manage our Device objects

Hierarchy

Index

Constructors

Static constructor

  • Returns DevicesPageElement

Events

Protected onChromeMessage

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

Protected onDeleteTapped

  • onDeleteTapped(ev: any): void

onFabTapped

  • onFabTapped(): void

Properties

Protected devices

devices: Device[] = []

The array of devices

infoMessage

infoMessage: string = ""

Message if device list is not available

Accessors

computeHasInfoMessage

  • get computeHasInfoMessage(): boolean

Static template

  • get template(): HTMLTemplateElement

Methods

Protected computeDate

  • computeDate(date: number): string

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

Protected loadDevices

  • loadDevices(): void

onEnterPage

  • onEnterPage(): Promise<void>

onLeavePage

  • onLeavePage(): Promise<void>

Protected sortByDate

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 ping

  • ping(): void

Object literals

Static Protected ERR

ERR: object

Error messages

NO_DEVICES

NO_DEVICES: string = 'No remote devices are registered.\n\n' +'Please disable \'Push to devices\' in the ' +'Settings or register other devices.\nThank you.'

NO_PUSH

NO_PUSH: string = 'Unable to look for remote devices\n\n' +'\'Push to devices\' is disabled.\n' +'You can enable it in the Settings.'

NO_RECEIVE

NO_RECEIVE: string = 'Unable to look for remote devices\n\n' +'\'Receive from devices\' is disabled.\n' +'You can enable it in the Settings.'

Generated using TypeDoc