mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
Added a helper method for labels.
This commit is contained in:
parent
21bc5c4983
commit
b7930fc9de
@ -2186,6 +2186,26 @@ HTMLTag *HTMLBuilder::input_week() {
|
|||||||
return tag.start("input")->itweek();
|
return tag.start("input")->itweek();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HTMLBuilder *HTMLBuilder::label(const String& pfor, const String& plabel, const String& cls, const String& id) {
|
||||||
|
HTMLTag *t = label();
|
||||||
|
|
||||||
|
t->fora(pfor);
|
||||||
|
|
||||||
|
if (cls != "") {
|
||||||
|
t->cls(cls);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (id != "") {
|
||||||
|
t->id(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
w(plabel);
|
||||||
|
|
||||||
|
clabel();
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
HTMLTag *HTMLBuilder::input_button(const String &name, const String &value, const String &cls, const String &id) {
|
HTMLTag *HTMLBuilder::input_button(const String &name, const String &value, const String &cls, const String &id) {
|
||||||
HTMLTag *t = input_button();
|
HTMLTag *t = input_button();
|
||||||
|
|
||||||
|
@ -22,10 +22,17 @@ public:
|
|||||||
HTMLTag *accept(const String &val);
|
HTMLTag *accept(const String &val);
|
||||||
HTMLTag *src(const String &val);
|
HTMLTag *src(const String &val);
|
||||||
HTMLTag *alt(const String &val);
|
HTMLTag *alt(const String &val);
|
||||||
HTMLTag *autocomplete(const String &val);
|
|
||||||
HTMLTag *inputmode(const String &val);
|
HTMLTag *inputmode(const String &val);
|
||||||
HTMLTag *list(const String &val);
|
HTMLTag *list(const String &val);
|
||||||
|
|
||||||
|
HTMLTag *autocomplete(const String &val);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//autocomplete
|
||||||
|
//onclick, etc
|
||||||
|
|
||||||
|
|
||||||
HTMLTag *checked(const bool val = true);
|
HTMLTag *checked(const bool val = true);
|
||||||
HTMLTag *autofocus(const bool val = true);
|
HTMLTag *autofocus(const bool val = true);
|
||||||
HTMLTag *disabled(const bool val = true);
|
HTMLTag *disabled(const bool val = true);
|
||||||
@ -396,9 +403,7 @@ public:
|
|||||||
HTMLTag *input_url();
|
HTMLTag *input_url();
|
||||||
HTMLTag *input_week();
|
HTMLTag *input_week();
|
||||||
|
|
||||||
//label!
|
HTMLBuilder *label(const String& pfor, const String& plabel, const String& cls = "", const String& id = "");
|
||||||
//autocomplete
|
|
||||||
//onclick, etc
|
|
||||||
|
|
||||||
HTMLTag *input_button(const String& name, const String& value = "", const String& cls = "", const String& id = "");
|
HTMLTag *input_button(const String& name, const String& value = "", const String& cls = "", const String& id = "");
|
||||||
HTMLTag *input_checkbox(const String& name, const String& value = "", const String& cls = "", const String& id = "");
|
HTMLTag *input_checkbox(const String& name, const String& value = "", const String& cls = "", const String& id = "");
|
||||||
|
Loading…
Reference in New Issue
Block a user