Minor fixed AutoConnectInput constructor

pull/41/head
Hieromon Ikasamo 6 years ago
parent 7ab11d49ef
commit f0cf302e6e
  1. 4
      src/AutoConnectElementBasis.h
  2. 4
      src/AutoConnectElementJson.h

@ -100,14 +100,14 @@ class AutoConnectCheckboxBasis : virtual public AutoConnectElementBasis {
*/
class AutoConnectInputBasis : virtual public AutoConnectElementBasis {
public:
explicit AutoConnectInputBasis(const char* name = "", const char* value = "", const char* placeholder = "", const char* label = "") : AutoConnectElementBasis(name, value), placeholder(String(placeholder)), label(String(label)) {
explicit AutoConnectInputBasis(const char* name = "", const char* value = "", const char* label = "", const char* placeholder = "") : AutoConnectElementBasis(name, value), label(String(label)), placeholder(String(placeholder)) {
_type = AC_Input;
}
virtual ~AutoConnectInputBasis() {}
const String toHTML(void) const override;
String placeholder;
String label; /**< A label for a subsequent input box */
String placeholder;
};
/**

@ -115,11 +115,11 @@ class AutoConnectCheckboxJson : public AutoConnectElementJson, public AutoConnec
*/
class AutoConnectInputJson : public AutoConnectElementJson, public AutoConnectInputBasis {
public:
explicit AutoConnectInputJson(const char* name = "", const char* value = "", const char* placeholder = "", const char* label = "") {
explicit AutoConnectInputJson(const char* name = "", const char* value = "", const char* label = "", const char* placeholder = "") {
AutoConnectInputBasis::name = String(name);
AutoConnectInputBasis::value = String(value);
AutoConnectInputBasis::placeholder = String(placeholder);
AutoConnectInputBasis::label = String(label);
AutoConnectInputBasis::placeholder = String(placeholder);
}
~AutoConnectInputJson() {}
const size_t getObjectSize(void) const override;

Loading…
Cancel
Save