mirror of
https://github.com/s00500/ESPUI.git
synced 2024-11-22 04:00:55 +00:00
Documentation typos
This commit is contained in:
parent
f5dd757240
commit
f8462bcd48
10
README.md
10
README.md
@ -405,8 +405,8 @@ Note: The images in this example are formed by setting a Label to contain an `<i
|
|||||||
|
|
||||||
### Grouped controls
|
### Grouped controls
|
||||||
|
|
||||||
Normally, whenever a control is added to the UI, an new panel is generated. However, when addings the control you can
|
Normally, whenever a control is added to the UI, a new panel is generated with a title. However, you can instead
|
||||||
set the "parent" of the control to an existing other control. This allows you to add multiple widgets into the same
|
set the "parent" of a new control to be an existing control. This allows you to add multiple widgets into the same
|
||||||
panel. For example:
|
panel. For example:
|
||||||
|
|
||||||
```
|
```
|
||||||
@ -415,9 +415,9 @@ panel. For example:
|
|||||||
ESPUI.addControl(ControlType::Button, "", "Button C", ControlColor::None, panel1, btncallback);
|
ESPUI.addControl(ControlType::Button, "", "Button C", ControlColor::None, panel1, btncallback);
|
||||||
```
|
```
|
||||||
|
|
||||||
The first call to `addControl` has no parent (or it could be set to a tab), so therefore a new panel is added containing one button
|
The first call to `addControl` has no parent (or it could be set to a tab if you are using a tabbed UI), so therefore a new panel is added containing one button
|
||||||
with the value `Button A`. The two subsequent calls have their parent set to the control we added in the first so instead of adding
|
with the value `Button A`. The two subsequent calls have their parent set to the first control we added, so instead of creating
|
||||||
a new panel, buttons are added to the existing panel from `Button A`. The result is the following:
|
a new panel, the result is the following:
|
||||||
|
|
||||||
![Grouped buttons](docs/ui_groupedbuttons.png)
|
![Grouped buttons](docs/ui_groupedbuttons.png)
|
||||||
|
|
||||||
|
BIN
docs/ui_widecontrols.png
Normal file
BIN
docs/ui_widecontrols.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
Loading…
Reference in New Issue
Block a user