Placeholder html attribute.

This commit is contained in:
Relintai 2021-08-20 20:32:23 +02:00
parent 7e8a7671e4
commit ae88f5b746
2 changed files with 7 additions and 0 deletions

View File

@ -51,6 +51,12 @@ HTMLTag *HTMLTag::type(const std::string &val) {
return this;
}
HTMLTag *HTMLTag::placeholder(const std::string &val) {
attrib("placeholder", val);
return this;
}
HTMLTag *HTMLTag::rel(const std::string &val) {
attrib("rel", val);

View File

@ -23,6 +23,7 @@ public:
HTMLTag *value(const std::string &val);
HTMLTag *method(const std::string &val);
HTMLTag *type(const std::string &val);
HTMLTag *placeholder(const std::string &val);
HTMLTag *rel(const std::string &val);
HTMLTag *rel_stylesheet();
HTMLTag *charset(const std::string &val);