v7.3.0

CopyPasteBase
Abstract

Base copy-paste functionality for row-based widgets. Not to be used directly.

No results

Configs

Configs are options you supply in a configuration object when creating an instance of this class
  • If true this prevents cutting and pasting. Will default to true if CellEdit feature is disabled. Set to false to prevent this behaviour.

  • The format a copied date value should have when converted to a string. To learn more about available formats, check out DateHelper docs.

  • Default keyMap configuration: Ctrl/Cmd+c to copy, Ctrl/Cmd+x to cut and Ctrl/Cmd+v to paste. These keyboard shortcuts require a selection to be made.

  • Set this to false to not use native Clipboard API even if it is available

  • Properties

    Properties are getters/setters or publicly accessible variables on this class
    • A method used to generate the name for a copy-pasted record. By defaults appends "- 2", "- 3" as a suffix. Override it to provide your own naming of pasted records.

      Has a corresponding generateNewName config.

    • isCopyPasteBase : Booleantrue
      READONLY
      ADVANCED
      Identifies an object as an instance of CopyPasteBase class, or subclass thereof.

    Functions

    Functions are methods available for calling on the class

      Source path

      Grid/feature/base/CopyPasteBase.js

      Contents