scenario class
Displays and modify the definition of a scenario.
Methods¶
__init__() ¶
__init__(
scenario=None,
active=True,
expandable=True,
expanded=True,
show_submit=True,
show_delete=True,
show_config=False,
show_creation_date=False,
show_cycle=False,
show_tags=True,
show_properties=True,
show_sequences=True,
show_submit_sequences=True,
on_submission_change=None,
id=None,
class_name=None,
) -> None
Create a new scenario
element.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
Union[Scenario,list[Scenario]]
|
The scenario to display and edit. |
None
|
|
bool
|
Indicates if this component is active. |
True
|
|
bool
|
If True, the scenario viewer can be expanded. |
True
|
|
bool
|
If True, when a valid scenario is selected, the scenario viewer is expanded and its content is displayed. |
True
|
|
bool
|
If False, the scenario submit button is not visible. |
True
|
|
bool
|
If False, the button to delete a scenario is not visible. |
True
|
|
bool
|
If False, the scenario configuration label is not visible. |
False
|
|
bool
|
If False, the scenario creation date is not visible. |
False
|
|
bool
|
If False, the scenario cycle label is not visible. |
False
|
|
bool
|
If False, the scenario tags are not visible. |
True
|
|
bool
|
If False, the scenario properties are not visible. |
True
|
|
bool
|
If False, the scenario sequences are not visible. |
True
|
|
bool
|
If False, the buttons to submit scenario sequences are not visible. |
True
|
|
Union[str, Callable]
|
A function or the name of a function that is triggered when a submission status is changed.
|
None
|
|
str
|
The identifier that will be assigned to the rendered HTML component. |
None
|
|
str
|
The list of CSS class names associated with the generated HTML Element. |
None
|