Options
All
  • Public
  • Public/Protected
  • All
Menu

Polymer element for the Google Photos page photos view UI

Hierarchy

Index

Constructors

Static constructor

  • Returns PhotosViewElement

Events

Protected onChromeMessage

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

Protected onChromeStorageChanged

  • onChromeStorageChanged(changes: object): void

Protected onPhotoCatChanged

  • onPhotoCatChanged(ev: CustomEvent): void

onRefreshPhotosClicked

  • onRefreshPhotosClicked(): void

Properties

Protected cats

cats: object[] = [{name: 'LANDSCAPES', label: ChromeLocale.localize('photo_cat_landscapes')},{name: 'CITYSCAPES', label: ChromeLocale.localize('photo_cat_cityscapes')},{name: 'LANDMARKS', label: ChromeLocale.localize('photo_cat_landmarks')},{name: 'PEOPLE', label: ChromeLocale.localize('photo_cat_people')},{name: 'ANIMALS', label: ChromeLocale.localize('photo_cat_animals')},{name: 'PETS', label: ChromeLocale.localize('photo_cat_pets')},{name: 'PERFORMANCES', label: ChromeLocale.localize('photo_cat_performances')},{name: 'SPORT', label: ChromeLocale.localize('photo_cat_sport')},{name: 'FOOD', label: ChromeLocale.localize('photo_cat_food')},{name: 'SELFIES', label: ChromeLocale.localize('photo_cat_selfies')},]

Array of photo categories

disabled

disabled: boolean = false

Flag to indicate if UI is disabled

needsPhotoRefresh

needsPhotoRefresh: boolean = true

Do we need to reload the photos

noFilter

noFilter: boolean = true

Flag to indicate if we should not filter photos

permPicasa

permPicasa: string = Permissions.STATE.notSet

Status of the option permission for the Google Photos API

Protected photoCount

photoCount: number = 0

Count for photo mode

waitForLoad

waitForLoad: boolean = false

Flag to display the loading... UI

Protected waiterStatus

waiterStatus: string = ""

Status label for waiter

Accessors

isFilterDisabled

  • get isFilterDisabled(): boolean

isHidden

  • get isHidden(): boolean

isRefreshDisabled

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

loadPhotos

  • loadPhotos(): Promise<void>

Protected noFilterChanged

  • noFilterChanged(newValue: boolean, oldValue: boolean): void

ready

  • ready(): void

Protected setPhotoCats

  • setPhotoCats(): void

setPhotoCount

  • setPhotoCount(): Promise<void>

Protected waitForLoadChanged

  • waitForLoadChanged(waitForLoad: boolean, waiterStatus: string): 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