public function registerClientScript()
    {
        $view = $this->getView();
        DualListboxAsset::register($view);

        $id = (array_key_exists('id', $this->options)) ? $this->options['id'] : Html::getInputId($this->model, $this->attribute);
        $options = empty($this->clientOptions) ? '' : Json::encode($this->clientOptions);
        $view->registerJs("jQuery('#$id').bootstrapDualListbox($options);");
    }
public function registerClientScript()
    {
        $view = $this->getView();
        DualListboxAsset::register($view);

        $id = (array_key_exists('id', $this->options)) ? $this->options['id'] : Html::getInputId($this->model, $this->attribute);
        $options = empty($this->clientOptions) ? '' : Json::encode($this->clientOptions);
        $view->registerJs("jQuery('#$id').bootstrapDualListbox($options);");
    }
public function registerClientScript ( ) { $ view = $ this -> getView ( ) ; DualListboxAsset :: register ( $ view ) ; $ id = ( array_key_exists ( 'id' , $ this -> options ) ) ? $ this -> options [ 'id' ] : Html :: getInputId ( $ this -> model , $ this -> attribute ) ; $ options = empty ( $ this -> clientOptions ) ? '' : Json :: encode ( $ this -> clientOptions ) ; $ view -> registerJs ( "jQuery('#$id').bootstrapDualListbox($options);" ) ; }
Registers the required JavaScript.
Registers the required JavaScript .