Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BackupRowElement

Polymer element that represents a backup file

Hierarchy

Index

Constructors

Static constructor

  • Returns BackupRowElement

Events

onDeleteTapped

  • onDeleteTapped(): void

onRestoreTapped

  • onRestoreTapped(): void

onSyncTapped

  • onSyncTapped(): void

Properties

Protected date

date: string

File date

Protected file

Protected isWaiting

isWaiting: boolean = false

Waiting for operation to complete

Static Protected CANT_UNDO

CANT_UNDO: string = "This operation cannot be undone"

Title for undoable actions

Accessors

Static template

  • get template(): HTMLTemplateElement

Methods

Protected computeDate

  • computeDate(): string

Protected deleteBackup

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

  • restoreBackup(): Promise<void>

Protected syncBackup

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

Object literals

Static Protected ERR

ERR: object

Error messages

DELETE

DELETE: string = "Delete failed"

NO_FILE

NO_FILE: string = "No backup file"

RESTORE

RESTORE: string = "Restore failed"

SYNC

SYNC: string = "Sync failed"

Generated using TypeDoc