Added rows and cols to HTMLTag.

This commit is contained in:
Relintai 2022-08-26 11:49:22 +02:00
parent f1e5f3d062
commit 1f8581edd8
4 changed files with 31 additions and 0 deletions

View File

@ -78,6 +78,19 @@ HTMLTag *HTMLTag::alt(const String &val) {
return this; return this;
} }
HTMLTag *HTMLTag::rows(const String &val) {
attrib("rows", val);
return this;
}
HTMLTag *HTMLTag::cols(const String &val) {
attrib("cols", val);
return this;
}
HTMLTag *HTMLTag::autocomplete(const String &val) { HTMLTag *HTMLTag::autocomplete(const String &val) {
attrib("autocomplete", val); attrib("autocomplete", val);

View File

@ -28,6 +28,8 @@ public:
HTMLTag *alt(const String &val); HTMLTag *alt(const String &val);
HTMLTag *inputmode(const String &val); HTMLTag *inputmode(const String &val);
HTMLTag *list(const String &val); HTMLTag *list(const String &val);
HTMLTag *rows(const String &val);
HTMLTag *cols(const String &val);
HTMLTag *autocomplete(const String &val); HTMLTag *autocomplete(const String &val);

View File

@ -96,6 +96,18 @@ Ref<_HTMLTag> _HTMLTag::alt(const String &val) {
return Ref<_HTMLTag>(this); return Ref<_HTMLTag>(this);
} }
Ref<_HTMLTag> _HTMLTag::rows(const String &val) {
attrib("rows", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::cols(const String &val) {
attrib("cols", val);
return Ref<_HTMLTag>(this);
}
Ref<_HTMLTag> _HTMLTag::autocomplete(const String &val) { Ref<_HTMLTag> _HTMLTag::autocomplete(const String &val) {
attrib("autocomplete", val); attrib("autocomplete", val);
@ -893,6 +905,8 @@ void _HTMLTag::_bind_methods() {
ClassDB::bind_method(D_METHOD("alt", "val"), &_HTMLTag::alt); ClassDB::bind_method(D_METHOD("alt", "val"), &_HTMLTag::alt);
ClassDB::bind_method(D_METHOD("inputmode", "val"), &_HTMLTag::inputmode); ClassDB::bind_method(D_METHOD("inputmode", "val"), &_HTMLTag::inputmode);
ClassDB::bind_method(D_METHOD("list", "val"), &_HTMLTag::list); ClassDB::bind_method(D_METHOD("list", "val"), &_HTMLTag::list);
ClassDB::bind_method(D_METHOD("rows", "val"), &_HTMLTag::rows);
ClassDB::bind_method(D_METHOD("cols", "val"), &_HTMLTag::cols);
ClassDB::bind_method(D_METHOD("autocomplete", "val"), &_HTMLTag::autocomplete); ClassDB::bind_method(D_METHOD("autocomplete", "val"), &_HTMLTag::autocomplete);

View File

@ -33,6 +33,8 @@ public:
Ref<_HTMLTag> alt(const String &val); Ref<_HTMLTag> alt(const String &val);
Ref<_HTMLTag> inputmode(const String &val); Ref<_HTMLTag> inputmode(const String &val);
Ref<_HTMLTag> list(const String &val); Ref<_HTMLTag> list(const String &val);
Ref<_HTMLTag> rows(const String &val);
Ref<_HTMLTag> cols(const String &val);
Ref<_HTMLTag> autocomplete(const String &val); Ref<_HTMLTag> autocomplete(const String &val);