src/Widget.php
protected function registerWidget($name, $id = null)
    {
        if ($id === null) {
            $id = $this->options['id'];
        }
        JuiAsset::register($this->getView());
        $this->registerClientEvents($name, $id);
        $this->registerClientOptions($name, $id);
    }
protected function registerWidget($name, $id = null)
    {
        if ($id === null) {
            $id = $this->options['id'];
        }
        JuiAsset::register($this->getView());
        $this->registerClientEvents($name, $id);
        $this->registerClientOptions($name, $id);
    }
protected function registerWidget ( $ name , $ id = null ) { if ( $ id === null ) { $ id = $ this -> options [ 'id' ] ; } JuiAsset :: register ( $ this -> getView ( ) ) ; $ this -> registerClientEvents ( $ name , $ id ) ; $ this -> registerClientOptions ( $ name , $ id ) ; }
Registers a specific jQuery UI widget asset bundle, initializes it with client options and registers related events
@param string $name the name of the jQuery UI widget
@param string $id the ID of the widget. If null, it will use the `id` value of [[options]].
Registers a specific jQuery UI widget asset bundle initializes it with client options and registers related events