mirror of
https://github.com/s00500/ESPUI.git
synced 2025-11-27 23:03:16 +00:00
comments
This commit is contained in:
@@ -17,6 +17,9 @@
|
|||||||
#include <umm_malloc/umm_heap_select.h>
|
#include <umm_malloc/umm_heap_select.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Optional user-defined JavaScript to be included in the UI.
|
||||||
|
// Served at /js/custom.js, which is automatically included in index.htm.
|
||||||
|
// js: JavaScript code as a C-string. Must remain valid for the lifetime of the ESPUIClass instance.
|
||||||
static const char* customJS = nullptr;
|
static const char* customJS = nullptr;
|
||||||
|
|
||||||
// Set custom JavaScript to be included in the UI.
|
// Set custom JavaScript to be included in the UI.
|
||||||
|
|||||||
@@ -203,6 +203,7 @@ public:
|
|||||||
|
|
||||||
// Set optional user-defined JavaScript to be included in the UI.
|
// Set optional user-defined JavaScript to be included in the UI.
|
||||||
// js: JavaScript code as a C-string. Must remain valid for the lifetime of the ESPUIClass instance.
|
// js: JavaScript code as a C-string. Must remain valid for the lifetime of the ESPUIClass instance.
|
||||||
|
// This is intentionally not a String to avoid dynamic memory allocation.
|
||||||
void setCustomJS(const char* js);
|
void setCustomJS(const char* js);
|
||||||
|
|
||||||
// Variables
|
// Variables
|
||||||
|
|||||||
Reference in New Issue
Block a user