Skip to content

data_node class

Displays and edits of a data node.

Methods

__init__()

__init__(
    data_node=None,
    active=True,
    expandable=True,
    expanded=True,
    show_config=False,
    show_owner=True,
    show_edit_date=False,
    show_expiration_date=False,
    show_properties=True,
    show_history=True,
    show_data=True,
    show_owner_label=False,
    chart_config=None,
    scenario=None,
    id=None,
    class_name=None,
) -> None

Create a new data_node element.

Parameters:

Name Type Description Default
data_node DataNode|list[DataNode]
dynamic

The data node to display and edit.
If the value is a list, it must have a single element otherwise nothing is shown.

None
active bool
dynamic

Indicates if this component is active.
An inactive component allows no user interaction.

True
expandable bool

If True, the data node viewer can be expanded.
If False, the data node viewer is not expandable and it is shown depending on expanded value.

True
expanded bool

If True, when a valid data node is selected, the data node viewer is expanded and its content is displayed.
If False, the data node viewer is collapsed and only its name is visible.

True
show_config bool

If False, the data node configuration label is not visible.

False
show_owner bool

If False, the data node owner label is not visible.

True
show_edit_date bool

If False, the data node edition date is not visible.

False
show_expiration_date bool

If False, the data node expiration date is not visible.

False
show_properties bool

If False, the data node properties are not visible.

True
show_history bool

If False, the data node history is not visible.

True
show_data bool

If False, the data node value is not visible.

True
show_owner_label bool

If True, the data node owner label is added to the datanode label at the top of the block.

False
chart_config dict

Chart configs by data node configuration id.

None
scenario Scenario
dynamic

A variable bound to this property is set to the selected Scenario when the user picks it from the list of owner scenarios accessible from the 'Owner' field in the 'Properties' tab.
This property is set to None if there is no selected owner scenario.

None
id str

The identifier that will be assigned to the rendered HTML component.

None
class_name str
dynamic

The list of CSS class names associated with the generated HTML Element.
These class names will be added to the default taipy_gui_core-<element_type>.

None