1
0
mirror of https://github.com/s00500/ESPUI.git synced 2024-06-27 21:34:13 +00:00
ESPUI/src
Ian Gray ec1862cfe6 Support for dynamic custom inline styling.
Adds two functions in ESPUI.h:
setPanelStyle()
setElementStyle()
These allow for custom inline CSS styles to be applied to the panel and to
the specific UI element repectively.

For example:

```
char stylecol1[30]
sprintf(stylecol1, "background-color: #%06X;", (unsigned int) random(0x0, 0xFFFFFF));
ESPUI.setPanelStyle(switch1, stylecol1);
```
This will set the panel of the given control to a random hex colour.

This is supported by both the initial UI message, and by control update messages, so you
can change these styles dynamically in response to other events.

setElementStyle() is not perfect. Because CSS inline styles can only style one specific
DOM element, for controls made up of multiple elements (like the "pad") this is limited.
I have tried to make an appropriate choice for each supported control.
2022-01-02 21:56:32 +00:00
..
dataControlsJS.h Support for dynamic custom inline styling. 2022-01-02 21:56:32 +00:00
dataGraphJS.h Add remControl() method for remove contols 2020-08-26 22:13:38 +02:00
dataIndexHTML.h Add remControl() method for remove contols 2020-08-26 22:13:38 +02:00
dataNormalizeCSS.h Add remControl() method for remove contols 2020-08-26 22:13:38 +02:00
dataSliderJS.h Fixing sliders not updating properly 2020-08-26 22:16:02 +02:00
dataStyleCSS.h Add feedback to buttons when being pessed. One way to address #110. 2021-12-29 23:01:01 +00:00
dataTabbedcontentJS.h Add remControl() method for remove contols 2020-08-26 22:13:38 +02:00
dataZeptoJS.h Add remControl() method for remove contols 2020-08-26 22:13:38 +02:00
ESPUI.cpp Support for dynamic custom inline styling. 2022-01-02 21:56:32 +00:00
ESPUI.h Support for dynamic custom inline styling. 2022-01-02 21:56:32 +00:00