Documentation

@kanunilabs/datagrid-react


@kanunilabs/datagrid-react / copyToClipboard

Function: copyToClipboard()

copyToClipboard<TRow>(controller, options?): void

Defined in: datagrid-react/src/components/cellMenuItems.ts:47

Write the grid's current clipboard text and publish the gesture.

The single copy implementation, shared by Ctrl+C and by every Copy entry in the menu. performed is false when there was nothing to copy or the platform withholds the async clipboard — the bracket still closes, because a listener asked to be told about the gesture, not only about its successes.

Type Parameters

TRow

TRow

Parameters

controller

DataGridController<TRow>

options?

includeGroupHeaders?

boolean

includeHeaders?

boolean

Returns

void