Context Menu API Reference¶
CSS¶
Classes¶
Variables¶
JavaScript¶
Modules¶
DeskAPI¶
soundObject: contains URLs for sound files, available sounds aresound.attentionsound.confirmsound.exitsound.finishsound.navigatesound.savesound.setsound.error
playSoundFunction ( url: String ): takes an URL of a sound filerobotConfigurationko.observable( { jointAngles: Array[Number], pose: Array[Number] } ): current robot posegripperStateko.observable( { width: Number, maxWidth: Number } ): current gripper staterelativeGripperWidthko.pureComputed() { return Number }: gripper width from 0 (closed) to 1 (open)modbusObject: modbus configuration
ElementAPI¶
pathko.pureComputed() returns Object { id: String, indices: Array[Number] }: path to the elementmodelObject:idStringnameko.observable(String)colorko.observable(String)tagsko.observableArray(String)imageko.observable(String)contextMenuko.observable(Object)componentsko.observable(Object)hiddenInLibraryko.observable(Boolean)
parameterFunction ( expression: String ) { return ko.observable }: takes an expression and returns an observable with the app's (scoped) parameterhasParentComponentFunction ( name: String, stepID: String ) { return Boolean }
componentProviderAPI¶
registerComponentFunction ( sourcePath : String, componentNames : Array, parameters : Object ) { return Promise }: register a component in the component provider entry to enable linkingcomponentProviderEventsEvents Object: contains acloneConfigurationevent which is called when the component config shall be duplicated in case an app is unlinked
StepAPI¶
idStringnameko.observable(String)labelko.observable(String)pilotko.observable(Object): the pilot configurationfocusedko.observable(Boolean)availableko.observable(Boolean)configuredko.observable(Boolean)stepsko.observableArray(): child stepsfocusFunction ( ): focus the stepdoneFunction ( ): mark step as done and focus next stepparentObject: points to the parent stepnextObject: points to the next stepprevObject: points to the previous stepupdateFunction ( 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¶
resetFunction ( ): reset parameter to the default valueisDirtyFunction ( ) { return Boolean }: returns true, if parameter was modifiedaccessPathFunction ( ) { return Array(String) }: returns the access path of the parameterparameterFunction (String): returns a subtree of the parameter by passing an expression