mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-02-06 16:16:06 +01:00
Added enctype and multipart form helpers to HTMLTag.
This commit is contained in:
parent
1f8581edd8
commit
0cfc5ed610
@ -90,6 +90,17 @@ HTMLTag *HTMLTag::cols(const String &val) {
|
|||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
HTMLTag *HTMLTag::enctype(const String &val) {
|
||||||
|
attrib("enctype", val);
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
|
HTMLTag *HTMLTag::enctype_multipart_form_data() {
|
||||||
|
attrib("enctype", "multipart/form-data");
|
||||||
|
|
||||||
|
return this;
|
||||||
|
}
|
||||||
|
|
||||||
HTMLTag *HTMLTag::autocomplete(const String &val) {
|
HTMLTag *HTMLTag::autocomplete(const String &val) {
|
||||||
attrib("autocomplete", val);
|
attrib("autocomplete", val);
|
||||||
|
@ -28,9 +28,13 @@ 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 *rows(const String &val);
|
||||||
HTMLTag *cols(const String &val);
|
HTMLTag *cols(const String &val);
|
||||||
|
|
||||||
|
HTMLTag *enctype(const String &val);
|
||||||
|
HTMLTag *enctype_multipart_form_data();
|
||||||
|
|
||||||
HTMLTag *autocomplete(const String &val);
|
HTMLTag *autocomplete(const String &val);
|
||||||
|
|
||||||
HTMLTag *autocomplete_off();
|
HTMLTag *autocomplete_off();
|
||||||
|
@ -108,6 +108,18 @@ Ref<_HTMLTag> _HTMLTag::cols(const String &val) {
|
|||||||
return Ref<_HTMLTag>(this);
|
return Ref<_HTMLTag>(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Ref<_HTMLTag> _HTMLTag::enctype(const String &val) {
|
||||||
|
attrib("enctype", val);
|
||||||
|
|
||||||
|
return Ref<_HTMLTag>(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
Ref<_HTMLTag> _HTMLTag::enctype_multipart_form_data() {
|
||||||
|
attrib("enctype", "multipart/form-data");
|
||||||
|
|
||||||
|
return Ref<_HTMLTag>(this);
|
||||||
|
}
|
||||||
|
|
||||||
Ref<_HTMLTag> _HTMLTag::autocomplete(const String &val) {
|
Ref<_HTMLTag> _HTMLTag::autocomplete(const String &val) {
|
||||||
attrib("autocomplete", val);
|
attrib("autocomplete", val);
|
||||||
|
|
||||||
@ -905,9 +917,13 @@ 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("rows", "val"), &_HTMLTag::rows);
|
||||||
ClassDB::bind_method(D_METHOD("cols", "val"), &_HTMLTag::cols);
|
ClassDB::bind_method(D_METHOD("cols", "val"), &_HTMLTag::cols);
|
||||||
|
|
||||||
|
ClassDB::bind_method(D_METHOD("enctype", "val"), &_HTMLTag::enctype);
|
||||||
|
ClassDB::bind_method(D_METHOD("enctype_multipart_form_data"), &_HTMLTag::enctype_multipart_form_data);
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("autocomplete", "val"), &_HTMLTag::autocomplete);
|
ClassDB::bind_method(D_METHOD("autocomplete", "val"), &_HTMLTag::autocomplete);
|
||||||
|
|
||||||
ClassDB::bind_method(D_METHOD("autocomplete_off"), &_HTMLTag::autocomplete_off);
|
ClassDB::bind_method(D_METHOD("autocomplete_off"), &_HTMLTag::autocomplete_off);
|
||||||
|
@ -33,9 +33,13 @@ 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> rows(const String &val);
|
||||||
Ref<_HTMLTag> cols(const String &val);
|
Ref<_HTMLTag> cols(const String &val);
|
||||||
|
|
||||||
|
Ref<_HTMLTag> enctype(const String &val);
|
||||||
|
Ref<_HTMLTag> enctype_multipart_form_data();
|
||||||
|
|
||||||
Ref<_HTMLTag> autocomplete(const String &val);
|
Ref<_HTMLTag> autocomplete(const String &val);
|
||||||
|
|
||||||
Ref<_HTMLTag> autocomplete_off();
|
Ref<_HTMLTag> autocomplete_off();
|
||||||
|
Loading…
Reference in New Issue
Block a user