Class: UU::OS::GVC::Tree
- Inherits:
-
Component
- Object
- Component
- UU::OS::GVC::Tree
- Defined in:
- uu_os_gvc-0.28.16/lib/uu/os/gvc/tree.rb
Overview
Tree component.
Instance Attribute Summary (collapse)
-
- (Object) data
Tree data binding.
-
- (Object) data_uri
Tree dataUri.
Attributes inherited from Component
#attributes, #code, #component_type, #form, #height, #id, #name, #width
Method Summary
Methods inherited from Component
#add_message, #focus, #initialize, #messages
Constructor Details
This class inherits a constructor from UU::OS::GVC::Component
Instance Attribute Details
- (Object) data
Tree data binding. Data may contain hash describing tree node, in format.
{
"opened" : true,
"component" : {
...
},
"children" : [ ... ]
}
Attribute children may contains list of children nodes defined by same hash format. Whole tree is composed by nodes and its list of children nodes.
Attribute component may contain only text or whole component definition:
"component" :
"text" : "Node 1"
or for component ( in this case you can add any attribute of defined component )
"component" :
"componentType" : "uu.os.gvc.link",
"text" : "Node 1",
"tooltip" : "Node 1 Tooltip",
...
36 37 38 |
# File 'uu_os_gvc-0.28.16/lib/uu/os/gvc/tree.rb', line 36 def data @data end |
- (Object) data_uri
Tree dataUri. Set UESURI must link to artifact property of type short text, text or BLOB and linked property must contain similar json structure like in data attribute example.
40 41 42 |
# File 'uu_os_gvc-0.28.16/lib/uu/os/gvc/tree.rb', line 40 def data_uri @data_uri end |