主题
ExpansionPanelListChangeEvent 继承自: Event['ExpansionPanelList']
Payload for on_change event.
属性
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
index | int | required | The index of the panel in controls that was toggled. Panels with visible set to False are not counted/indexed. This means the value may differ from the panel's position in the original controls list when some panels are invisible. To map it back, filter controls to only visible panels and use this index on that filtered list. |
expanded | bool | required | Whether the toggled panel is expanded (True) or collapsed (False) after the event. |