Commit b7b5581
authored
ui: Grid: Added indentation and chevrons to grid cells (#3901)
This change adds a new feature to `GridCell`s which allows indentations
and expand/collapse chevrons to be injected.
Note: This doesn't manage data-loading or even storing the
collapsed/expanded states, it simply provides the raw building blocks
that can be used to build tree-like components based on `Grid`.
Example screenshot from the demo page:
<img width="622" height="529" alt="image"
src="https://github.com/user-attachments/assets/cb3188a5-a807-4f2a-be8e-f8e94cba5656"
/>1 parent 4874bcc commit b7b5581
File tree
3 files changed
+556
-40
lines changed- ui/src
- assets/widgets
- plugins/dev.perfetto.WidgetsPage/demos
- widgets
3 files changed
+556
-40
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
| |||
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| 78 | + | |
| 79 | + | |
76 | 80 | | |
77 | 81 | | |
| 82 | + | |
78 | 83 | | |
79 | 84 | | |
80 | 85 | | |
81 | 86 | | |
82 | 87 | | |
83 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
84 | 102 | | |
85 | 103 | | |
86 | | - | |
87 | 104 | | |
88 | 105 | | |
89 | 106 | | |
| |||
97 | 114 | | |
98 | 115 | | |
99 | 116 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | 117 | | |
104 | 118 | | |
105 | 119 | | |
| 120 | + | |
106 | 121 | | |
107 | 122 | | |
108 | 123 | | |
| 124 | + | |
109 | 125 | | |
110 | 126 | | |
111 | 127 | | |
| |||
0 commit comments