Added onclick helper aswell.

This commit is contained in:
Relintai 2021-11-16 16:33:47 +01:00
parent e5de7e48ae
commit ff28b413d2
2 changed files with 7 additions and 1 deletions

View File

@ -344,6 +344,12 @@ HTMLTag *HTMLTag::autocomplete_photo() {
return this;
}
HTMLTag *HTMLTag::onclick(const String &val) {
attrib("onclick", val);
return this;
}
HTMLTag *HTMLTag::inputmode(const String &val) {
attrib("inputmode", val);

View File

@ -82,7 +82,7 @@ public:
HTMLTag *autocomplete_url();
HTMLTag *autocomplete_photo();
//onclick, etc
HTMLTag *onclick(const String &val);
HTMLTag *checked(const bool val = true);
HTMLTag *autofocus(const bool val = true);