mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-10 00:52:11 +01:00
Added a new clsse helper method to HTMLBuilder.
This commit is contained in:
parent
7cb505ee09
commit
c7fa9caac4
@ -27,6 +27,16 @@ HTMLTag *HTMLTag::cls(const String &val) {
|
||||
return this;
|
||||
}
|
||||
|
||||
HTMLTag *HTMLTag::clsse(const String &val) {
|
||||
if (val == "") {
|
||||
return this;
|
||||
}
|
||||
|
||||
attrib("class", val);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
HTMLTag *HTMLTag::id(const String &val) {
|
||||
attrib("id", val);
|
||||
|
||||
|
@ -15,6 +15,7 @@ public:
|
||||
HTMLTag *style(const String &val);
|
||||
HTMLTag *href(const String &val);
|
||||
HTMLTag *cls(const String &val);
|
||||
HTMLTag *clsse(const String &val); //se -> skip empty
|
||||
HTMLTag *id(const String &val);
|
||||
HTMLTag *name(const String &val);
|
||||
HTMLTag *content(const String &val);
|
||||
|
Loading…
Reference in New Issue
Block a user