Page MenuHomeWickedGov Phorge

ToggleSwitchWidget.php
No OneTemporary

Size
573 B
Referenced Files
None
Subscribers
None

ToggleSwitchWidget.php

<?php
namespace MediaWiki\Widget;
use OOUI\CheckboxInputWidget;
/**
* Base class for widgets to warp a checkbox into toggle widget.
*
* @copyright 2017 MediaWiki Widgets Team and others; see AUTHORS.txt
* @license MIT
*/
class ToggleSwitchWidget extends CheckboxInputWidget {
public function __construct( array $config = [] ) {
parent::__construct( $config );
$this->setValue( $config['selected'] );
$this->addClasses( [ 'mw-widgets-toggleSwitchWidget' ] );
}
protected function getJavaScriptClassName() {
return 'mw.widgets.ToggleSwitchWidget';
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, Oct 3, 12:22 (3 d, 4 h ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
06/1a/461274c4247c88d94f2a94559990
Default Alt Text
ToggleSwitchWidget.php (573 B)

Event Timeline