Context Menu API Reference¶
CSS¶
Classes¶
Variables¶
JavaScript¶
Modules¶
DeskAPI¶
sound
Object: contains URLs for sound files, available sounds aresound.attention
sound.confirm
sound.exit
sound.finish
sound.navigate
sound.save
sound.set
sound.error
playSound
Function ( url: String ): takes an URL of a sound filerobotConfiguration
ko.observable( { jointAngles: Array[Number], pose: Array[Number] } ): current robot posegripperState
ko.observable( { width: Number, maxWidth: Number } ): current gripper staterelativeGripperWidth
ko.pureComputed() { return Number }: gripper width from 0 (closed) to 1 (open)modbus
Object: modbus configuration
ElementAPI¶
path
ko.pureComputed() returns Object { id: String, indices: Array[Number] }: path to the elementmodel
Object:id
Stringname
ko.observable(String)color
ko.observable(String)tags
ko.observableArray(String)image
ko.observable(String)contextMenu
ko.observable(Object)components
ko.observable(Object)hiddenInLibrary
ko.observable(Boolean)
parameter
Function ( expression: String ) { return ko.observable }: takes an expression and returns an observable with the app's (scoped) parameterhasParentComponent
Function ( name: String, stepID: String ) { return Boolean }
componentProviderAPI¶
registerComponent
Function ( sourcePath : String, componentNames : Array, parameters : Object ) { return Promise }: register a component in the component provider entry to enable linkingcomponentProviderEvents
Events Object: contains acloneConfiguration
event which is called when the component config shall be duplicated in case an app is unlinked
StepAPI¶
id
Stringname
ko.observable(String)label
ko.observable(String)pilot
ko.observable(Object): the pilot configurationfocused
ko.observable(Boolean)available
ko.observable(Boolean)configured
ko.observable(Boolean)steps
ko.observableArray(): child stepsfocus
Function ( ): focus the stepdone
Function ( ): mark step as done and focus next stepparent
Object: points to the parent stepnext
Object: points to the next stepprev
Object: points to the previous stepupdate
Function ( Object ): update any of the step's observable properties by passing an Object with the names of the observables to be modified as keys
ParameterAPI¶
reset
Function ( ): reset parameter to the default valueisDirty
Function ( ) { return Boolean }: returns true, if parameter was modifiedaccessPath
Function ( ) { return Array(String) }: returns the access path of the parameterparameter
Function (String): returns a subtree of the parameter by passing an expression