diff --git a/core/html/html_builder.cpp b/core/html/html_builder.cpp index bb56485..ad67c43 100644 --- a/core/html/html_builder.cpp +++ b/core/html/html_builder.cpp @@ -3211,6 +3211,18 @@ HTMLTag *HTMLBuilder::input_week(const String &name, const String &cls, const St return t; } +HTMLTag *HTMLBuilder::input_hidden(const String& name, const String& value) { + HTMLTag *t = input_hidden(); + + t->name(name); + + if (value != "") { + t->value(value); + } + + return t; +} + void HTMLBuilder::f() { write_tag(); } diff --git a/core/html/html_builder.h b/core/html/html_builder.h index dfe8d2d..957c260 100644 --- a/core/html/html_builder.h +++ b/core/html/html_builder.h @@ -500,6 +500,7 @@ public: HTMLTag *input_time(const String& name, const String& cls = "", const String& id = "", const String& vmin = "", const String& vmax = "", const String& vstep = ""); HTMLTag *input_url(const String& name, const String& value = "", const String& placeholder = "", const String& cls = "", const String& id = "", const String& minlength = "", const String& maxlength = "", const String& size = ""); HTMLTag *input_week(const String& name, const String& cls = "", const String& id = "", const String& vmin = "", const String& vmax = ""); + HTMLTag *input_hidden(const String& name, const String& value); void f();