Timeline dom node.
This node is used to show a timeline based of a table from a table. 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 style which should be applied ot the node
- layout: The tineline visualisaton either
vertical
orhorizontal
- record: Define a different record for which the timeline should be shown
- variable: The ident of the table variable to show, ot the name of the dyn_workflow
- icon: The column ident of the icon to show
- title: The column ident of the title to show
- subtitle: The column ident of the subtitle to show
- reference: The column ident of the reference to show before the title
- content: The column ident of the content to show
Within the layouter this timeline can be used like this:
Methods
Creates a new Timeline dom element.
Example
let node = new;
node.name = "Your Data";
node.layout = "horizontal";
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.layout
Get the timeline layout.
Example
let node = new;
node.layout = "horizontal";
assert_eq!;
value.layout = input
Set the timeline layout.
Example
let node = new;
node.layout = "horizontal";
assert_eq!;
let output = value.record
Get the optional record reference.
Example
let node = new;
node.record = "463db135-d8f6-44d0-a320-5d80886ae296";
assert_eq!;
value.record = input
Set the optional record reference.
Example
let node = new;
node.record = "463db135-d8f6-44d0-a320-5d80886ae296";
assert_eq!;
let output = value.variable
Get the timeline variable.
Example
let node = new;
node.variable = "test_var";
assert_eq!;
value.variable = input
Set the timeline variable.
Example
let node = new;
node.variable = "test_var";
assert_eq!;
let output = value.icon
Get the timeline icon column.
Example
let node = new;
node.icon = "icon_col";
assert_eq!;
value.icon = input
Set the timeline icon column.
Example
let node = new;
node.icon = "icon_col";
assert_eq!;
let output = value.title
Get the timeline title column.
Example
let node = new;
node.title = "title_col";
assert_eq!;
value.title = input
Set the timeline title column.
Example
let node = new;
node.title = "title_col";
assert_eq!;
let output = value.subtitle
Get the timeline subtitle column.
Example
let node = new;
node.subtitle = "sub_col";
assert_eq!;
value.subtitle = input
Set the timeline subtitle column.
Example
let node = new;
node.subtitle = "sub_col";
assert_eq!;
let output = value.reference
Get the timeline reference column.
Example
let node = new;
node.reference = "ref_col";
assert_eq!;
value.reference = input
Set the timeline reference column.
Example
let node = new;
node.reference = "ref_col";
assert_eq!;
let output = value.content
Get the timeline content column.
Example
let node = new;
node.content = "content_col";
assert_eq!;
value.content = input
Set the timeline reference column.
Example
let node = new;
node.content = "content_col";
assert_eq!;