mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-02-20 15:14:26 +01:00
Textarea helpers.
This commit is contained in:
parent
e99a82919d
commit
94381a3e42
@ -1546,6 +1546,29 @@ HTMLBuilder *HTMLBuilder::fdiv(const String &body, const String &cls, const Stri
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HTMLTag *HTMLBuilder::textarea(const String &name, const String &cls, const String &id) {
|
||||||
|
HTMLTag *t = textarea();
|
||||||
|
|
||||||
|
t->name(name);
|
||||||
|
|
||||||
|
if (cls != "") {
|
||||||
|
t->cls(cls);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (id != "") {
|
||||||
|
t->id(id);
|
||||||
|
}
|
||||||
|
|
||||||
|
return t;
|
||||||
|
}
|
||||||
|
HTMLBuilder *HTMLBuilder::ftextarea(const String &name, const String &body, const String &cls, const String &id) {
|
||||||
|
textarea(name, cls, id);
|
||||||
|
w(body);
|
||||||
|
ctextarea();
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
//Closing tags
|
//Closing tags
|
||||||
|
|
||||||
HTMLBuilder *HTMLBuilder::ca() {
|
HTMLBuilder *HTMLBuilder::ca() {
|
||||||
|
@ -310,6 +310,9 @@ public:
|
|||||||
HTMLTag *div(const String& cls, const String& id = "");
|
HTMLTag *div(const String& cls, const String& id = "");
|
||||||
HTMLBuilder *fdiv(const String& body, const String& cls = "", const String& id = "");
|
HTMLBuilder *fdiv(const String& body, const String& cls = "", const String& id = "");
|
||||||
|
|
||||||
|
HTMLTag *textarea(const String& name, const String& cls = "", const String& id = "");
|
||||||
|
HTMLBuilder *ftextarea(const String& name, const String& body, const String& cls = "", const String& id = "");
|
||||||
|
|
||||||
//closing tags c prefix means close
|
//closing tags c prefix means close
|
||||||
//Note simple tags should not have these like <br>
|
//Note simple tags should not have these like <br>
|
||||||
//Note that I might have a few that shouldn't be here, those will be removed as I find them
|
//Note that I might have a few that shouldn't be here, those will be removed as I find them
|
||||||
|
@ -78,6 +78,9 @@ public:
|
|||||||
static void db_save_all(const Vector<Ref<Resource> > &resources);
|
static void db_save_all(const Vector<Ref<Resource> > &resources);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
//add serialization to and from requests
|
||||||
|
//could also build a form validator automatically using the property registration api
|
||||||
|
|
||||||
//Resource::register<T>() foreach parents cast call
|
//Resource::register<T>() foreach parents cast call
|
||||||
//RBACRank::register()
|
//RBACRank::register()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user