kartik\tree\TreeView::registerAssets PHP Méthode

registerAssets() public méthode

Registers the client assets for the widget
public registerAssets ( )
    public function registerAssets()
    {
        $view = $this->getView();
        TreeViewAsset::register($view);
        if ($this->_hasBootstrap && $this->autoLoadBsPlugin) {
            BootstrapPluginAsset::register($view);
        }
        $this->pluginOptions += ['treeId' => $this->treeOptions['id'], 'detailId' => $this->detailOptions['id'], 'toolbarId' => $this->toolbarOptions['id'], 'wrapperId' => $this->treeWrapperOptions['id'], 'actions' => $this->nodeActions, 'modelClass' => $this->query->modelClass, 'formAction' => $this->nodeActions[Module::NODE_SAVE], 'formOptions' => $this->nodeFormOptions, 'currUrl' => Yii::$app->request->url, 'messages' => $this->clientMessages, 'alertFadeDuration' => $this->alertFadeDuration, 'enableCache' => ArrayHelper::getValue($this->cacheSettings, 'enableCache', true), 'cacheTimeout' => ArrayHelper::getValue($this->cacheSettings, 'cacheTimeout', 300000), 'showTooltips' => $this->showTooltips, 'isAdmin' => $this->isAdmin, 'showInactive' => $this->showInactive, 'softDelete' => $this->softDelete, 'iconsList' => $this->_iconsList, 'showFormButtons' => $this->showFormButtons, 'showIDAttribute' => $this->showIDAttribute, 'nodeView' => $this->nodeView, 'nodeAddlViews' => $this->nodeAddlViews, 'nodeSelected' => $this->_nodeSelected, 'breadcrumbs' => $this->breadcrumbs, 'multiple' => $this->multiple, 'allowNewRoots' => $this->allowNewRoots];
        $this->registerPlugin('treeview');
    }