mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-10 00:52:11 +01:00
Added an input_hidden helper.
This commit is contained in:
parent
2482e66c12
commit
d9c36d0a4e
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user