Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ClipViewerElement

Polymer element to display a ClipItem

Hierarchy

Index

Constructors

Static constructor

  • Returns ClipViewerElement

Events

_onLabelsTapped

  • _onLabelsTapped(): void

onCancelEditTapped

  • onCancelEditTapped(): void

onEditModeTapped

  • onEditModeTapped(): void

onSaveEditTapped

  • onSaveEditTapped(): void

Properties

clipItem

clipItem: ClipItem

Current clip

editText

editText: string = ""

Text currently being edited

isEditMode

isEditMode: boolean = false

Edit mode state

Protected labelEls

labelEls: HTMLDivElement

labels

labels: Label[]

Array of Label objects for the ClipItem

Protected text

text: HTMLDivElement

Protected textArea

textArea: PaperTextareaElement

Accessors

addEditIcon

  • get addEditIcon(): "myicons:mode-edit" | "myicons:add"

addEditTitle

  • get addEditTitle(): "Edit clip" | "Add new clip"

textAreaLabel

  • get textAreaLabel(): "Editing clip" | "Creating new clip"

Static template

  • get template(): HTMLTemplateElement

Methods

Protected clearEditMode

  • clearEditMode(): void

Protected clipItemChanged

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

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