| Total Complexity | 3 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class SwitchInput extends SwitchButton |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * The DDS data type to store the value of the field |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | public $ddsDataType = 'boolean'; |
||
| 23 | |||
| 24 | public function registerScripts($view) |
||
| 25 | { |
||
| 26 | ElAsset::register($view); |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @inheritdoc |
||
| 31 | */ |
||
| 32 | public function getFieldHtml() |
||
| 33 | { |
||
| 34 | return Html::tag('el-switch', '', ['name'=>$this->getInputName()]); |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @inheritdoc |
||
| 39 | */ |
||
| 40 | public function getComponentDetails() |
||
| 44 | ]; |
||
| 45 | } |
||
| 46 | |||
| 48 | } |