name
property to have effect, you must add the following import to your project:
+ * import "@ui5/webcomponents/dist/features/InputElementsFormSupport.js";
+ *
+ * input
HTML element
+ * will be created inside the component so that it can be submitted as
+ * part of an HTML form. Do not use this property unless you need to submit a form.
+ *
+ * @type {string}
+ * @name sap.ui.webc.main.Switch.prototype.name
+ * @defaultvalue ""
+ * @public
+ * @since 1.16.0
+ */
+ @property()
+ name!: string;
+
+ /**
+ * The slot is used to render native input
HTML element within Light DOM to enable form submit, when Switch
is a part of HTML form.
+ *
+ * @type {HTMLElement[]}
+ * @slot
+ * @private
+ * @since 1.16.0
+ */
+ @slot()
+ formSupport!: Array