15 if ( !empty( $this->mParams[
'invert'] ) ) {
23 $attr += OOUI\Element::configFromHtmlAttributes(
27 if ( $this->mClass !==
'' ) {
32 $attr[
'selected'] = $value;
47 return [
'mediawiki.widgets.ToggleSwitchWidget' ];
shouldInfuseOOUI()
Whether the field should be automatically infused.Note that all OOUI HTMLForm fields are infusable (y...
getInputOOUI( $value)
Get the OOUI version of this field.
getOOUIModules()
Get the list of extra ResourceLoader modules which must be loaded client-side before it's possible to...