ClipboardService

App.clipboard. ClipboardService

new ClipboardService()

Methods

addObjects(objectIdsopt) → {Promise}

Add selected objectIds into clipboard

Parameters:
Name Type Attributes Description
objectIds Array.<string> <optional>

Objects Id which to be added into clipboard

Returns:

Promise that if is resolved successfully will contain the requested data

Type
Promise

clear() → {Promise}

Clears the clipboard content.

Returns:

Promise that if is resolved successfully removes the clipboard content.

Type
Promise

getObjectsData(objectIds) → {Promise}

Return object basic information type, name, revision.

Parameters:
Name Type Description
objectIds Array.<string>
Returns:

Promise that if is resolved successfully will contain the requested data

Type
Promise

getTableData(tableConfig) → {Promise}

Return clipboard data.

Parameters:
Name Type Description
tableConfig string

Example 'tvc:tableconfig:helium:clipboard/Clipboard.xml'

Returns:

Promise that if is resolved successfully will contain the requested data

Type
Promise

removeObject(objectId) → {Promise}

Remove objectId from clipboard.

Parameters:
Name Type Description
objectId string

Objects Id which to be removed from clipboard

Returns:

Promise that if is resolved successfully will contain the requested data

Type
Promise