s00500 / ESPUI

A simple web user interface library for ESP32 and ESP8266

Home Page:https://valencia.lbsfilm.at/midterm-presentation/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Popup in Webscreen

I-Harii opened this issue · comments

I loved the ESPUI works, i am requesting to add POPUP in Webserver for much more flexibility.

This is a very vague request.

If you are referring to integrating some Javascript pop-up library, the issue is that the more Javascript we bundle into it, the more space is taken away from what people actually want to do with the library. Adding a few dozen kB of Javascript hurts everyone who wants to use the library, we can just keep adding things.

You can add additional Javascript libraries yourself by putting them in the data/js folder, linking them in data/index.html rerunning tools/prepare_static_ui_sources.py, and including the generated header files into src/ESPUI.cpp and adding a server handler by copying an existing one. It would be good for someone to build a custom build system that allows arbitrary file inclusions but it has not been done yet.

so.... an actually very simple thing to do here would be adding an event to fire an alert to connected clients.... could be using the very basic window.alert function....

Hmm, yes I suppose that could work, although I have no idea how effective window.alert() is on disparate clients.

It would be indeed useful to warn client on some hardware or internal software failure.