Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MainPageElement

Polymer element to display and manage ClipItem objects

Hierarchy

Index

Constructors

Static constructor

  • Returns MainPageElement

Events

Protected onChromeMessage

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

onClearFavoriteTapped

  • onClearFavoriteTapped(): Promise<void>

onCloseToastTapped

  • onCloseToastTapped(): void

Protected onCopy

  • onCopy(): void

onDeleteSelectedTapped

  • onDeleteSelectedTapped(): Promise<void>

onDeselectAllTapped

  • onDeselectAllTapped(): void

onFavFilterTapped

  • onFavFilterTapped(): Promise<void>

onPinTapped

  • onPinTapped(): void

onRowLabelTapped

  • onRowLabelTapped(): Promise<void>

onSelectAllTapped

  • onSelectAllTapped(): void

onSelectLabelsTapped

  • onSelectLabelsTapped(): Promise<void>

onSelectedClipChanged

  • onSelectedClipChanged(): void

onSendTapped

  • onSendTapped(): void

onSetFavoriteTapped

  • onSetFavoriteTapped(): Promise<void>

onUndoDeleteTapped

  • onUndoDeleteTapped(): Promise<void>

onViewerClipAdd

  • onViewerClipAdd(ev: CustomEvent): Promise<void>

onViewerLabelsTapped

  • onViewerLabelsTapped(): Promise<void>

onViewerTextChanged

  • onViewerTextChanged(ev: CustomEvent): Promise<void>

Properties

canSend

canSend: boolean = false

Can send clipboard contents state

Protected clipList

clipList: ClipListElement

currentClip

currentClip: ClipItem

ClipItem currently being viewed

hasSelections

hasSelections: boolean = false

Has selected items state

isBulkOp

isBulkOp: boolean = false

Multiple clip operations state

isCurrentPage

isCurrentPage: boolean = false

Are we the current page state

isEditMode

isEditMode: boolean = false

Editing currentClip state

isFavFilter

isFavFilter: boolean = false

Filtering by favorite state

isMultiLabelsEdit

isMultiLabelsEdit: boolean = false

Label changes in dialog should apply to all selectedClips state

isPinFavs

isPinFavs: boolean = false

Favorites on top state

labelFilter

labelFilter: string

Label name for filtering our items

Protected labelsDialog

labelsDialog: LabelsDialogElement

Protected messageToast

messageToast: PaperToastElement

selDialogLabels

selDialogLabels: string[] = []

Array of all selected Label names in the dialog

undoClips

undoClips: ClipItem[] = []

Array of ClipItem objects that have been recently deleted

undoText

undoText: string = ""

Undo toast message

Protected undoToast

undoToast: PaperToastElement

Static Protected ERR_LOAD

ERR_LOAD: "Failed to load Clips" = "Failed to load Clips"

Error message

Accessors

favIcon

  • get favIcon(): "myicons:favorite" | "myicons:favorite-border"

favMenuColor

  • get favMenuColor(): "rgba(255, 0, 0, .8)" | "var(--menu-icon-color)"

favToolTip

  • get favToolTip(): "Show all" | "Show favorites only"

labelsDialogTitle

  • get labelsDialogTitle(): "Change labels for selected clips" | "Set labels for the current clip"

pageTitle

  • get pageTitle(): string

pinIcon

  • get pinIcon(): "myicons:pin" | "myicons:pin-off"

pinToolTip

  • get pinToolTip(): "Unpin favorites" | "Pin favorites to top"

Static template

  • get template(): HTMLTemplateElement

Methods

Protected closeUndoToast

  • closeUndoToast(): void

Protected computeUndoText

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

  • loadClipItems(isSelectFirst?: boolean): Promise<void>

onEnterPage

  • onEnterPage(): Promise<void>

onLeavePage

  • onLeavePage(): Promise<void>

Protected selDialogLabelsAddedOrRemoved

  • selDialogLabelsAddedOrRemoved(changeRecord: PolymerSpliceChange<Label[]>): Promise<void>

Protected setCurrentClip

  • setCurrentClip(): void

setLabelFilter

  • setLabelFilter(labelName?: string): void

Protected showLabelsDialog

  • showLabelsDialog(multi: boolean): Promise<void>

Protected showMessageToast

  • showMessageToast(text: string, err?: Error): void

Protected showUndoToast

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