src/Form/Field/Checkbox.php 1 location
|
@@ 82-89 (lines=8) @@
|
| 79 |
|
/** |
| 80 |
|
* {@inheritdoc} |
| 81 |
|
*/ |
| 82 |
|
public function render() |
| 83 |
|
{ |
| 84 |
|
$this->script = "$('{$this->getElementClassSelector()}').iCheck({checkboxClass:'icheckbox_minimal-blue'});"; |
| 85 |
|
|
| 86 |
|
$this->addVariables(['checked' => $this->checked, 'inline' => $this->inline]); |
| 87 |
|
|
| 88 |
|
return parent::render(); |
| 89 |
|
} |
| 90 |
|
} |
| 91 |
|
|
src/Form/Field/Radio.php 1 location
|
@@ 97-104 (lines=8) @@
|
| 94 |
|
/** |
| 95 |
|
* {@inheritdoc} |
| 96 |
|
*/ |
| 97 |
|
public function render() |
| 98 |
|
{ |
| 99 |
|
$this->script = "$('{$this->getElementClassSelector()}').iCheck({radioClass:'iradio_minimal-blue'});"; |
| 100 |
|
|
| 101 |
|
$this->addVariables(['options' => $this->options, 'checked' => $this->checked, 'inline' => $this->inline]); |
| 102 |
|
|
| 103 |
|
return parent::render(); |
| 104 |
|
} |
| 105 |
|
} |
| 106 |
|
|