yii\bootstrap\BootstrapWidgetTrait::registerPlugin PHP Method

registerPlugin() protected method

Registers a specific Bootstrap plugin and the related events
protected registerPlugin ( string $name )
$name string the name of the Bootstrap plugin
    protected function registerPlugin($name)
    {
        $view = $this->getView();
        BootstrapPluginAsset::register($view);
        $id = $this->options['id'];
        if ($this->clientOptions !== false) {
            $options = empty($this->clientOptions) ? '' : Json::htmlEncode($this->clientOptions);
            $js = "jQuery('#{$id}').{$name}({$options});";
            $view->registerJs($js);
        }
        $this->registerClientEvents();
    }