Data dom node.
This node is used inside a dom to display one or multiple variables. Supported fields of this node are:
- id: The id of this node
- name: The name to display
- status: The stati where the node should be shown
- rights: One of the rights needed to show the node
- edit: Defines the edit state of the node
- style: The which should be applied ot the node
- record: A record Uuid, or filed name with reference to show the data for
- collapsed: Collapse the data panel, to save space
- children: The data children containing the single values
Within the layouter this data can be used like this:
Methods
Protocols
let output = value.id
Get the id of the node as String
. A node Id should be unique inside the complete dom.
Example
let node = new;
node.id = "id_123456";
assert_eq!;
value.id = input
Set the id of the node as String
. A node Id should be unique inside the complete dom.
Example
let node = new;
node.id = "id_123456";
assert_eq!;
let output = value.name
Get the name of the node as String
. The name is used to display a title or main text.
Example
let node = new;
node.name = "Click Here";
assert_eq!;
value.name = input
Get the name of the node as String
. The name is used to display a title or main text.
Example
let node = new;
node.name = "Click Here";
assert_eq!;
let output = value.status
Get the different status of the node as Vec<String>
. This node and all it's child will only be displayed, when no status is set or the record has any of the given stati.
Example
let node = new;
node.status = ;
assert!;
value.status = input
Set the status of the node as Vec<String>
. This node and all it's child will only be displayed, when no status is set or the record has any of the given stati.
Example
let node = new;
node.status = ;
assert!;
let output = value.edit
Get the edit status of the node as Option<bool>
. The edit mode can be set as true
or false
. When the edit mode is not set, it takes the system edit state.
Example
let node = new;
node.edit = Some;
assert_eq!;
value.edit = input
Set the edit status of the node as Option<bool>
. The edit mode can be set as true
or false
. When the edit mode is not set, it takes the system edit state.
Example
let node = new;
node.edit = Some;
assert_eq!;
let output = value.style
Get the style of the node as String
.
Example
let node = new;
node.style = "color: red;";
assert_eq!;
value.style = input
Set the style of the node as String
.
Example
let node = new;
node.style = "color: red;";
assert_eq!;
let output = value.rights
Get the different rights of the node as Vec<String>
. This node and all it's child will only be displayed, when no rights are set or the user has one of the rights.
Example
let node = new;
node.rights = ;
assert!;
value.rights = input
Get the different rights of the node as Vec<String>
. This node and all it's child will only be displayed, when no rights are set or the user has one of the rights.
Example
let node = new;
node.rights = ;
assert!;
let output = value.record
Get the record to show the data for.
Example
let node = new;
node.record = "4bef61d8-8679-43cd-9e9d-c4dbc94b2993";
assert_eq!;
node.record = "";
assert_eq!;
value.record = input
Set the record to show the data for.
Example
let node = new;
node.record = "4bef61d8-8679-43cd-9e9d-c4dbc94b2993";
assert_eq!;
node.record = "";
assert_eq!;
let output = value.collapsed
Get the collapsed status.
Example
let node = new;
node.collapsed = true;
assert_eq!;
value.collapsed = input
Set the collapsed status.
Example
let node = new;
node.collapsed = true;
assert_eq!;
let output = value.children
Get the children.
Example
let node = new;
node.children = ;
assert_eq!;
value.children = input
Set the children.
Example
let node = new;
node.children = ;
assert_eq!;