|
supla-device
|
This HTML Element provides numeric input in config mode. More...
#include <custom_parameter.h>


Public Member Functions | |
| CustomParameterTemplate (const char *paramTag, const char *paramLabel, T defaultValue=static_cast< T >(0), T minValue=std::numeric_limits< T >::lowest(), T maxValue=std::numeric_limits< T >::max(), uint8_t decimalPlaces=0) | |
| void | send (Supla::WebSender *sender) override |
| bool | handleResponse (const char *key, const char *value) override |
| T | getParameterValue () |
| void | setParameterValue (T newValue) |
| Public Member Functions inherited from Supla::HtmlElement | |
| HtmlElement * | next () |
| HtmlElement (HtmlSection section=HTML_SECTION_FORM) | |
| virtual void | onProcessingEnd () |
Protected Member Functions | |
| int32_t | encodeValue (T value) const |
| T | decodeValue (int32_t value) const |
| void | setStoredValue (int32_t newValue, bool saveToConfig) |
Protected Attributes | |
| int32_t | parameterValue = 0 |
| char * | tag = nullptr |
| char * | label = nullptr |
| int32_t | minStoredValue = 0 |
| int32_t | maxStoredValue = 0 |
| uint8_t | decimalPlaces = 0 |
| Protected Attributes inherited from Supla::HtmlElement | |
| HtmlElement * | nextPtr = nullptr |
Additional Inherited Members | |
| Static Public Member Functions inherited from Supla::HtmlElement | |
| static HtmlElement * | begin () |
| static HtmlElement * | last () |
| static const char * | selected (bool isSelected) |
| static const char * | checked (bool isChecked) |
| Public Attributes inherited from Supla::HtmlElement | |
| HtmlSection | section |
| Static Protected Attributes inherited from Supla::HtmlElement | |
| static HtmlElement * | firstPtr = nullptr |
This HTML Element provides numeric input in config mode.
Value is always stored in Supla::Storage::Config as int32_t. For floating point types decimalPlaces defines storage scale and HTML step.
|
overridevirtual |
Reimplemented from Supla::HtmlElement.
|
overridevirtual |
Implements Supla::HtmlElement.