Namespace: clipboard

bcdui.util. clipboard

This namespace contains the clipboard functions, objects and constants.

Methods

staticbcdui.util.clipboard.clearData()

Cleans the current clipboard

staticbcdui.util.clipboard.copy(data)

Copy
Name Type Description
data string Data to be copied to clipboard

staticbcdui.util.clipboard.paste(){Promise}

Paste
Returns:
Type Description
Promise - resolving with clipboard data

staticbcdui.util.clipboard.pasteCSVasXML(data, emptyRowIfNoData)

Gets CSV data from the clipboard (or the provided data) and converts it to XML according to the csv-1.0.0.xsd.
Name Type Default Description
data string optional Optional parameter containing CSV data which should be converted instead of the clipboard data. If omitted the CSV data is taken from the clipboard.
emptyRowIfNoData boolean false optional If true and there is no data to paste, an emtpy row with one column is produced in the resulting XML, this is useful for pasting as new rows, in case only empty-cells were previously copied to the clipboard.