diff --git a/modules/web/html/html_builder.cpp b/modules/web/html/html_builder.cpp index 772763401..0ff3937e2 100644 --- a/modules/web/html/html_builder.cpp +++ b/modules/web/html/html_builder.cpp @@ -78,6 +78,19 @@ HTMLTag *HTMLTag::alt(const String &val) { 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) { attrib("autocomplete", val); diff --git a/modules/web/html/html_builder.h b/modules/web/html/html_builder.h index d84fd5737..e7ee02f27 100644 --- a/modules/web/html/html_builder.h +++ b/modules/web/html/html_builder.h @@ -28,6 +28,8 @@ public: HTMLTag *alt(const String &val); HTMLTag *inputmode(const String &val); HTMLTag *list(const String &val); + HTMLTag *rows(const String &val); + HTMLTag *cols(const String &val); HTMLTag *autocomplete(const String &val); diff --git a/modules/web/html/html_builder_bind.cpp b/modules/web/html/html_builder_bind.cpp index 1b8ef4556..5c7948e77 100644 --- a/modules/web/html/html_builder_bind.cpp +++ b/modules/web/html/html_builder_bind.cpp @@ -96,6 +96,18 @@ Ref<_HTMLTag> _HTMLTag::alt(const String &val) { 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) { 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("inputmode", "val"), &_HTMLTag::inputmode); 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); diff --git a/modules/web/html/html_builder_bind.h b/modules/web/html/html_builder_bind.h index 86cf4b7eb..71bdda0e4 100644 --- a/modules/web/html/html_builder_bind.h +++ b/modules/web/html/html_builder_bind.h @@ -33,6 +33,8 @@ public: Ref<_HTMLTag> alt(const String &val); Ref<_HTMLTag> inputmode(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);