-
clearData()
-
Clear all data in clipboard.
- Source:
-
getData(dataType) → {Variant}
-
Get data from clipboard.
e.g. Kekule.Widget.Clipboard.getData('text/plain').
Parameters:
Name |
Type |
Description |
dataType |
String
|
|
- Source:
Returns:
-
Type
-
Variant
-
getObjects(dataType) → {Variant}
-
A util method to load array of objects from clipboard.
Parameters:
Name |
Type |
Description |
dataType |
String
|
|
- Source:
Returns:
-
Type
-
Variant
-
getTypes() → {Array}
-
Returns all data types currently in clipboard.
- Source:
Returns:
-
Type
-
Array
-
hasData(dataType) → {Bool}
-
Check there are data in clipboard.
Parameters:
Name |
Type |
Description |
dataType |
String
|
|
- Source:
Returns:
-
Type
-
Bool
-
setData(dataType, data)
-
Add data to clipboard.
e.g. Kekule.Widget.Clipboard.setData('text/plain', 'A string').
Parameters:
Name |
Type |
Description |
dataType |
String
|
MIME type of data. |
data |
Variant
|
Data add to clipboard. |
- Source:
-
setObjects(dataType, objs)
-
A util method to store array of objects into clipboard.
Parameters:
Name |
Type |
Description |
dataType |
String
|
|
objs |
Array
|
|
- Source: