copy node value and type
This commit is contained in:
1 parent
ead6c50c95
commit
dd5a5d64ae
5 files changed
+1021
No files matched your search
@@ -111,6 +111,28 @@ function newSuperalgosActionSwitch() {
|
||||
, 50, UI.projects.superalgos.spaces.cockpitSpace.statusTypes.ALL_GOOD)
|
||||
}
|
||||
break
|
||||
case 'Copy Node Value':
|
||||
{
|
||||
let value = action.node.payload.uiObject.getValue()
|
||||
|
||||
UI.projects.superalgos.utilities.clipboard.copyTextToClipboard(value)
|
||||
|
||||
UI.projects.superalgos.spaces.cockpitSpace.setStatus(
|
||||
value + ' copied to the Clipboard.'
|
||||
, 50, UI.projects.superalgos.spaces.cockpitSpace.statusTypes.ALL_GOOD)
|
||||
}
|
||||
break
|
||||
case 'Copy Node Type':
|
||||
{
|
||||
let value = action.node.type
|
||||
|
||||
UI.projects.superalgos.utilities.clipboard.copyTextToClipboard(value)
|
||||
|
||||
UI.projects.superalgos.spaces.cockpitSpace.setStatus(
|
||||
value + ' copied to the Clipboard.'
|
||||
, 50, UI.projects.superalgos.spaces.cockpitSpace.statusTypes.ALL_GOOD)
|
||||
}
|
||||
break
|
||||
case 'Add UI Object':
|
||||
{
|
||||
functionLibraryUiObjectsFromNodes.addUIObject(action.node, action.relatedNodeType, action.rootNodes)
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 9.3 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
File diff suppressed because it is too large.
Load diff
@@ -44,6 +44,7 @@ function newUiObject() {
|
||||
resetWarningMessage: resetWarningMessage,
|
||||
setInfoMessage: setInfoMessage,
|
||||
resetInfoMessage: resetInfoMessage,
|
||||
getValue: getValue,
|
||||
setValue: setValue,
|
||||
resetValue: resetValue,
|
||||
setPercentage: setPercentage,
|
||||
@@ -880,6 +881,10 @@ function newUiObject() {
|
||||
thisObject.hasInfo = false
|
||||
}
|
||||
|
||||
function getValue() {
|
||||
return currentValue
|
||||
}
|
||||
|
||||
function setValue(value, counter, minDecimals) {
|
||||
if (value !== undefined) {
|
||||
currentValue = value
|
||||
|
||||
Reference in new issue
Block a user