| Total Complexity | 2 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | class ICheckAsset extends AssetBundle |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * @var string |
||
| 19 | */ |
||
| 20 | public $sourcePath = '@vendor/almasaeed2010/adminlte/plugins'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @inheritdoc |
||
| 24 | */ |
||
| 25 | public function init() |
||
| 35 | $(function () { |
||
| 36 | $('input.iCheck').iCheck({ |
||
| 37 | checkboxClass: 'icheckbox_square-blue', |
||
| 38 | radioClass: 'iradio_square-blue', |
||
| 39 | increaseArea: '20%' // optional |
||
| 40 | }); |
||
| 41 | }); |
||
| 42 | ")); |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @var array |
||
| 47 | */ |
||
| 48 | public $depends = [ |
||
| 49 | JqueryAsset::class, |
||
| 50 | BootstrapAsset::class |
||
| 51 | ]; |
||
| 53 |