Clipboard.copy

Syntax

copy(text: String, htmlFormat: Boolean);

Parameters

text. Text copied to the clipboard.

htmlFormat. Determines whether the text is formatted (in HTML format). If the parameter is True the text is formatted, otherwise this is a plain text. This is an optional parameter, by default its value is not defined.

Description

The copy method copies text to clipboard.

Comments

The method returns an object of the PP.Ui.Clipboard type.

Example

The property use is given in the page with description of the Clipboard.getCopyPasteTextArea and Clipboard.getCopyPasteHTMLNode methods.

See also:

 Clipboard