The Clipboard API allows reading and writing to the clipboard in multiple formats.

Namespace

Hierarchy

  • Base
    • Clipboard

Constructors

Properties

wire: Transport<EntityType>

Accessors

Methods

  • Reads available formats for the clipboard type

    Returns

    Tutorial

    Clipboard.getAvailableFormats

    Parameters

    • Optional type: string

      Clipboard Type

    Returns Promise<string[]>

  • Read the content of the clipboard as Html

    Returns

    Tutorial

    Clipboard.readHtml

    Parameters

    • Optional type: string

      Clipboard Type

    Returns Promise<string>

  • Read the content of the clipboard as Rtf

    Returns

    Tutorial

    Clipboard.readRtf

    Parameters

    • Optional type: string

      Clipboard Type

    Returns Promise<string>

  • Read the content of the clipboard as plain text

    Returns

    Tutorial

    Clipboard.readText

    Parameters

    • Optional type: string

      Clipboard Type

    Returns Promise<string>

  • Writes data into the clipboard

    Returns

    Tutorial

    Clipboard.write

    Parameters

    Returns Promise<void>

  • Writes data into the clipboard as Html

    Returns

    Tutorial

    Clipboard.writeHtml

    Parameters

    • writeObj: WriteRequestType

      This object is described in the WriteRequestType typedef

    Returns Promise<void>

  • Writes data into the clipboard as Rtf

    Returns

    Tutorial

    Clipboard.writeRtf

    Parameters

    • writeObj: WriteRequestType

      This object is described in the WriteRequestType typedef

    Returns Promise<void>

  • Writes data into the clipboard as plain text

    Returns

    Tutorial

    Clipboard.writeText

    Parameters

    • writeObj: WriteRequestType

      This object is described in the WriteRequestType typeof

    Returns Promise<void>

Generated using TypeDoc