Options
All
  • Public
  • Public/Protected
  • All
Menu

A label for a ClipItem

Hierarchy

  • Label

Index

Constructors

constructor

  • new Label(name: string): Label

Properties

_id

_id: number

Database PK

name

name: string = ""

Label name

Accessors

Static ERROR_EMPTY_TEXT

  • get ERROR_EMPTY_TEXT(): string

Static ERROR_EXISTS

  • get ERROR_EXISTS(): string

Methods

delete

  • delete(): Promise<void>

getId

  • getId(): Promise<undefined | number>
  • Get PK

    Returns Promise<undefined | number>

    PK, undefined if not found

save

  • save(): Promise<number>

setName

  • setName(name: string): Promise<boolean>
  • Update our name

    Parameters

    • name: string

      new name

    Returns Promise<boolean>

    true if updated

Static add

  • add(name: string): Promise<Label>

Static bulkPut

Static deleteAll

  • deleteAll(): Promise<void>

Static get

  • get(name: string): Promise<undefined | Label>

Static loadAll

  • loadAll(): Promise<Label[]>

Generated using TypeDoc