Added the value tag to the html builder.

This commit is contained in:
Relintai 2021-08-05 17:10:51 +02:00
parent 00f9be5f59
commit 6ea8d3e39a
2 changed files with 6 additions and 0 deletions

View File

@ -33,6 +33,11 @@ HTMLTag *HTMLTag::name(const std::string &val) {
return this;
}
HTMLTag *HTMLTag::value(const std::string &val) {
attrib("value", val);
return this;
}
HTMLTag *HTMLTag::method(const std::string &val) {
attrib("method", val);

View File

@ -20,6 +20,7 @@ public:
HTMLTag *cls(const std::string &val);
HTMLTag *id(const std::string &val);
HTMLTag *name(const std::string &val);
HTMLTag *value(const std::string &val);
HTMLTag *method(const std::string &val);
HTMLTag *type(const std::string &val);
HTMLTag *rel(const std::string &val);