This HTML Element provides input in config mode for text value.
More...
#include <custom_text_parameter.h>
|
| CustomTextParameter (const char *paramTag, const char *paramLabel, int maxSize) |
| Constructor.
|
|
virtual | ~CustomTextParameter () |
| Destructor.
|
|
void | send (Supla::WebSender *sender) override |
| Sends HTML content.
|
|
bool | handleResponse (const char *key, const char *value) override |
| Handles HTTP request.
|
|
bool | getParameterValue (char *result, const int maxSize) |
| Returns parameter value.
|
|
void | setParameterValue (const char *value) |
| Sets parameter value and stores it in Supla::Config.
|
|
HtmlElement * | next () |
|
| HtmlElement (HtmlSection section=HTML_SECTION_FORM) |
|
virtual void | onProcessingEnd () |
|
|
char | tag [SUPLA_CONFIG_MAX_KEY_SIZE] = {} |
|
char * | label = nullptr |
|
int | maxSize = 0 |
|
HtmlElement * | nextPtr = nullptr |
|
|
static HtmlElement * | begin () |
|
static HtmlElement * | last () |
|
static const char * | selected (bool isSelected) |
|
static const char * | checked (bool isChecked) |
|
HtmlSection | section |
|
static HtmlElement * | firstPtr = nullptr |
|
This HTML Element provides input in config mode for text value.
You have to provide paramTag under which provided value will be stored in Supla::Storage::Config. paramLabel provides label which is displayed next to input in www.
◆ CustomTextParameter()
Supla::Html::CustomTextParameter::CustomTextParameter |
( |
const char * | paramTag, |
|
|
const char * | paramLabel, |
|
|
int | maxSize ) |
Constructor.
- Parameters
-
paramTag | name that will be used in HTML form and in Supla::Config to store value. Max length is 16 B (including \0) |
paramLabel | label that will be displayed next to input |
maxSize | maximum length of value |
◆ getParameterValue()
bool Supla::Html::CustomTextParameter::getParameterValue |
( |
char * | result, |
|
|
const int | maxSize ) |
Returns parameter value.
- Parameters
-
result | buffer to store value |
maxSize | size of the buffer |
- Returns
- true if value was found, false otherwise
◆ handleResponse()
bool Supla::Html::CustomTextParameter::handleResponse |
( |
const char * | key, |
|
|
const char * | value ) |
|
overridevirtual |
Handles HTTP request.
- Parameters
-
- Returns
- true if element processed requested key, false otherwise
Reimplemented from Supla::HtmlElement.
◆ send()
◆ setParameterValue()
void Supla::Html::CustomTextParameter::setParameterValue |
( |
const char * | value | ) |
|
The documentation for this class was generated from the following files: