Extends OO.ui.ToggleSwitchWidget Constructor new mw.widgets.ToggleSwitchWidget([config]) # Create an instance of mw.widgets.ToggleSwitchWidget. Parameters: Name Type Attributes Description config Object optional Configuration options Properties: Name Type Attributes Description name string optional Name of input to submit results (when used in HTML forms) Source: mediawiki.widgets/mw.widgets.ToggleSwitchWidget.js, line 19