Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ClipRowElement

Polymer element to display a row in the {@link ClipList}

Hierarchy

Index

Constructors

Static constructor

  • Returns ClipRowElement

Events

onCopyTapped

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

onFavTapped

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

onLabelTapped

  • onLabelTapped(ev: CustomEvent): void

Properties

clip

clip: ClipItem | null = null

selected

selected: boolean = false

Selected state

Accessors

computeClipClass

  • get computeClipClass(): string

Static template

  • get template(): HTMLTemplateElement

Methods

Protected computeDate

  • computeDate(date: number): string

Protected computeFavColor

  • computeFavColor(isTrue: boolean): "rgba(255, 0, 0, .8)" | "var(--primary-text-color)"

Protected computeFavIcon

  • computeFavIcon(isTrue: boolean): "myicons:favorite" | "myicons:favorite-border"

Protected fireEvent

  • fireEvent(name: string, detailValue?: any): void
  • Dispatch an event

    Parameters

    • name: string

      event name

    • Optional detailValue: any

      optional value

    Returns 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