Hi,
I’m using a dataInspector like this to view data of the selected nodes.
I need to add it more properties but somehow I can’t.
Like in the image, I’ve added “ports” to view how many ports the relevant node has. I have a variable containing that data but how should I put it into the inspector?
This is the Inspector sample I’m currently working on
var inspector = new Inspector('ivrInspectorDiv', ivrDiagram, {
// allows for multiple nodes to be inspected at once
multipleSelection: true,
// max number of node properties will be shown when multiple selection is true
showSize: 20,
// when multipleSelection is true, when showAllProperties is true it takes the union of properties
// otherwise it takes the intersection of properties
showAllProperties: true,
// uncomment this line to only inspect the named properties below instead of all properties on each object:
// includesOwnProperties: false,
properties: {
// "text": {},
// key would be automatically added for nodes, but we want to declare it read-only also:
// "key": { readOnly: true, show: Inspector.showIfPresent },
// color would be automatically added for nodes, but we want to declare it a color also:
"color": {
show: Inspector.showIfPresent,
type: 'color'
},
"isGroup": {
readOnly: true,
show: Inspector.showIfPresent
},
// "flag": { show: Inspector.showIfNode, type: 'checkbox' },
"choices": {
show: false
}, // must not be shown at all
// an example of specifying the <input> type
"password": {
show: Inspector.showIfPresent,
type: 'password'
},
"ports":{
}
}
});
Is there a way to put local variables into “ports”?
Thanks.