data_node_selector class
Displays a list of the Data Node entities that can be selected.
Methods¶
__init__() ¶
__init__(
value=None,
scenario=None,
datanodes=None,
multiple=False,
filter="*",
sort="*",
show_search=True,
show_pins=True,
display_cycles=True,
show_primary_flag=True,
on_change=None,
height="50vh",
id=None,
class_name=None,
) -> None
Create a new data_node_selector element.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
value
|
dynamic(Union[DataNode, list[DataNode]])
|
None
|
|
scenario
|
dynamic(Union[Scenario, list[Scenario]])
|
If set, the selector will only show the data nodes owned by this scenario or any scenario in the list. |
None
|
datanodes
|
dynamic(list[Union[DataNode, Scenario, Cycle]])
|
None
|
|
multiple
|
bool
|
If True, the user can select multiple data nodes, therefore the value property can hold a list of |
False
|
filter
|
Union[bool, str, DataNodeFilter, list[Union[str, DataNodeFilter]]]
|
A list of |
*
|
sort
|
Union[bool, str, DataNodeFilter, list[Union[str, DataNodeFilter]]]
|
A list of |
*
|
show_search
|
bool
|
If False, prevents users from searching for data nodes by label. |
True
|
show_pins
|
bool
|
If True, a pin is shown on each item of the selector and allows to restrict the number of displayed items. |
True
|
display_cycles
|
bool
|
If False, the cycles are not shown in the selector. |
True
|
show_primary_flag
|
bool
|
If False, the primary scenarios are not identified with specific visual hint. |
True
|
on_change
|
Union[str, Callable]
|
None
|
|
height
|
str
|
The maximum height, in CSS units, of the control. |
50vh
|
id
|
str
|
The identifier that will be assigned to the rendered HTML component. |
None
|
class_name
|
dynamic(str)
|
The list of CSS class names associated with the generated HTML Element. |
None
|