DashDropdownManager#
- class ansys.tools.visualization_interface.backends.plotly.widgets.dropdown_manager.DashDropdownManager(fig: plotly.graph_objects.Figure)#
Class to manage dropdown menus in a Plotly figure.
This class allows adding dropdown menus to a Plotly figure for controlling mesh visibility and other properties.
- Parameters:
- fig
go.Figure The Plotly figure to which dropdowns will be added.
- fig
Overview#
Add a mesh name to track for dropdown functionality. |
|
Get the list of tracked mesh names. |
|
Get visibility arguments for showing only specified meshes. |
|
Clear all tracked mesh names. |
Import detail#
from ansys.tools.visualization_interface.backends.plotly.widgets.dropdown_manager import DashDropdownManager
Method detail#
- DashDropdownManager.add_mesh_name(name: str) None#
Add a mesh name to track for dropdown functionality.
- Parameters:
- name
str The name of the mesh to track.
- name
- DashDropdownManager.get_mesh_names() List[str]#
Get the list of tracked mesh names.
- Returns:
List[str]List of mesh names.