Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BackupPageElement

Polymer element to manage backup and restore of data

Hierarchy

Index

Constructors

Static constructor

  • Returns BackupPageElement

Events

onBackupTapped

  • onBackupTapped(): void

onFabTapped

  • onFabTapped(): Promise<void>

Protected onRowChanged

  • onRowChanged(): void

Protected onRowDeleted

  • onRowDeleted(): Promise<void>

Properties

files

files: BackupFile[] = []

The Array of BackupFile objects

infoMessage

infoMessage: string = ""

A message about why file list is not available

isWaiting

isWaiting: boolean = false

Waiting for operation to complete

Accessors

computeHasInfoMessage

  • get computeHasInfoMessage(): boolean

Static template

  • get template(): HTMLTemplateElement

Methods

Protected doBackup

  • doBackup(): Promise<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 loadFiles

  • loadFiles(): Promise<void>

onEnterPage

  • onEnterPage(): Promise<void>

onLeavePage

  • onLeavePage(): Promise<void>

Protected setFiles

Protected sortFiles

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

Static Protected ERR

ERR: object

Error messages

BACKUP

BACKUP: string = "Backup failed"

FILES

FILES: string = "Failed to get backup files"

NO_FILES

NO_FILES: string = "No backup files exist on Google Drive"

Generated using TypeDoc