From c43c2c7b725e733937650152ab660c8870f1bfc7 Mon Sep 17 00:00:00 2001 From: Martin Date: Wed, 21 Feb 2024 15:31:46 -0500 Subject: [PATCH] Added File Display section --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index dffefc9..60b2736 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,7 @@ The Library runs on any kind of **ESP8266** and **ESP32** (NodeMCU, AI Thinker, - Delayed response support @MartinMueller2003 - Fragmented control transfer @ MartinMueller2003 - Extended Callback @MartinMueller2003 +- Added a file display element ## Roadmap @@ -146,6 +147,7 @@ more program memory to work with. - Separator - Time - Graph (partial implementation) +- File Display ## Documentation @@ -354,6 +356,19 @@ However even with a type set, user input should still be validated because it is easy to bypass client-side checks. Never trust user input. +#### File Display + +![filedisplay](docs/ui_fileDisplay.png) + +The File Display control is used to upload a file from the ESP file system and display the contents on the UI. The content is Auto Scrolled +to the last line in the file. Syntax: + +`fileDisplayId = ESPUI.fileDisplay("Filetest", ControlColor::Turquoise, FullyQualified FilePath);` + +After updating the contents of the file, trigger a display update using: +`ESPUI.updateControl(fileDisplayId);` + + #### Select control ![option1](docs/ui_select1.png)