src/CheckboxButtonGroup.php
protected function registerClientScript()
    {
        $view = $this->getView();
        CheckboxButtonGroupAsset::register($view);

        $id = $this->widgetId;
        $options =  Json::encode(
            ArrayHelper::merge(
                $this->itemOptions,
                [
                    'checkboxes' =>  '#'.$this->widgetId.'-checkbox'
                ]
            )
        );
        $js = "jQuery('#$id').checkboxButtonGroup($options);";
        $view->registerJs($js);

        $js = [
            "jQuery('#$id-buttons').show();",
            "jQuery('#$id-checkbox').hide();"
        ];

        $view->registerJs(
            implode("\n", $js),
            \yii\web\View::POS_END
        );
    }
protected function registerClientScript()
    {
        $view = $this->getView();
        CheckboxButtonGroupAsset::register($view);

        $id = $this->widgetId;
        $options =  Json::encode(
            ArrayHelper::merge(
                $this->itemOptions,
                [
                    'checkboxes' =>  '#'.$this->widgetId.'-checkbox'
                ]
            )
        );
        $js = "jQuery('#$id').checkboxButtonGroup($options);";
        $view->registerJs($js);

        $js = [
            "jQuery('#$id-buttons').show();",
            "jQuery('#$id-checkbox').hide();"
        ];

        $view->registerJs(
            implode("\n", $js),
            \yii\web\View::POS_END
        );
    }
Registers widget assets