You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/11-Expand-Panel.md
+14-9Lines changed: 14 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
-------------------
2
-
# 11 Expand Panel
3
-
-------------------
1
+
--------------------
2
+
\# 11 Expand Panel
3
+
--------------------
4
4
5
5
An expand panel is a collapsible container that can show or hide its
6
6
content. It consists of a clickable header (which always displays) and a
@@ -27,8 +27,8 @@ hover).
27
27
28
28
## ExpandPanelCfg
29
29
30
-
The `expand_panel` view is created with an `ExpandPanelCfg` structure. The most important fields are:
31
-
Important fields:
30
+
The `expand_panel` view is created with an `ExpandPanelCfg` structure.
31
+
The most important fields are: Important fields:
32
32
33
33
-`id string` --- Optional identifier for the view.
34
34
-`head View` --- The header content (required). This is a view that
@@ -67,13 +67,18 @@ Important fields:
67
67
68
68
## Interaction model
69
69
70
-
-**Click**: Clicking anywhere in the header row triggers the `on_toggle` callback if it is provided.
71
-
-**Hover**: When the pointer is over the header, the mouse cursor changes to a pointing hand, and the header background uses the theme's `color_hover`.
72
-
-**Arrow indicator**: The header automatically shows `icon_arrow_up` when `open` is `true` and `icon_arrow_down` when `open` is `false`.
70
+
-**Click**: Clicking anywhere in the header row triggers the
71
+
`on_toggle` callback if it is provided.
72
+
-**Hover**: When the pointer is over the header, the mouse cursor
73
+
changes to a pointing hand, and the header background uses the theme's
74
+
`color_hover`.
75
+
-**Arrow indicator**: The header automatically shows `icon_arrow_up`
76
+
when `open` is `true` and `icon_arrow_down` when `open` is `false`.
73
77
74
78
## `expand_panel`
75
79
76
-
This function creates the expand panel view from the given `ExpandPanelCfg`.
80
+
This function creates the expand panel view from the given
0 commit comments