Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Clipboard

The clipboard interface.

Index

Functions

copyToSystem

  • Copy text to the system clipboard.

    Notes

    This can only be called in response to a user input event.

    Parameters

    Returns void

generateEvent

  • generateEvent(node: HTMLElement, type?: "copy" | "cut"): void
  • Generate a clipboard event on a node.

    Parameters

    • node: HTMLElement

      The element on which to generate the event.

    • Optional type: "copy" | "cut"

      The type of event to generate. 'paste' events cannot be programmatically generated.

      Notes

      This can only be called in response to a user input event.

    Returns void

getInstance

  • getInstance(): MimeData
  • Get the application clipboard instance.

    Returns MimeData

setInstance

  • setInstance(value: MimeData): void
  • Set the application clipboard instance.

    Parameters

    • value: MimeData

    Returns void

Generated using TypeDoc