kartik\tree\TreeViewInput::initTreeView PHP Méthode

initTreeView() protected méthode

protected initTreeView ( )
    protected function initTreeView()
    {
        if (!$this->hasModel() && $this->name === null) {
            throw new InvalidConfigException("Either 'name', or 'model' and 'attribute' properties must be specified.");
        }
        $this->showCheckbox = true;
        $css = 'kv-tree-input-widget';
        if (!$this->showToolbar) {
            $css .= ' kv-tree-nofooter';
        }
        Html::addCssClass($this->treeOptions, $css);
        parent::initTreeView();
        $this->_hasBootstrap = $this->showTooltips || $this->asDropdown;
    }