CopyColumn

Displays a copy button and places a string of text onto the browser clipboard when the button is clicked. By default this will get a string from the field specified by the field property.

Example

<CopyColumn :field="linkUrl" />

Properties

This column provides default values for the following standard properties:

  • headerClass
  • itemClass
  • width
  • name
  • formatComponent

valueToCopy

Type: (row: Record<string, unknown>, column: ColumnDefinition, grid: IGridState) => string Optional

Specifies the function that will be called to get the value to place on the clipboard. If not specified then the default is to use the value from the field property to find text in the row.