Class kartik\tree\Module
Inheritance | kartik\tree\Module » kartik\base\Module » yii\base\Module |
---|---|
Uses Traits | kartik\base\TranslationTrait |
Available since version | 1.0 |
The tree management module for Yii Framework 2.0.
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$dataStructure | array | The configuration of additional data attributes for the tree | kartik\tree\Module |
$i18n | array | The the internalization configuration for this widget | kartik\base\Module |
$treeStructure | array | The configuration of nested set attributes structure | kartik\tree\Module |
$treeViewSettings | array | The default configuration settings for the tree view widget | kartik\tree\Module |
$unsetAjaxBundles | array | The list of asset bundles that would be unset when rendering the node detail form via ajax | kartik\tree\Module |
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$_msgCat | string | Translation message file category name for i18n | kartik\base\Module |
Public Methods
Method | Description | Defined By |
---|---|---|
init() | kartik\tree\Module | |
initI18N() | Yii i18n messages configuration for generating translations | kartik\base\TranslationTrait |
Constants
Constant | Value | Description | Defined By |
---|---|---|---|
MODULE | 'treemanager' | kartik\tree\Module | |
NODE_MANAGE | 'manage' | kartik\tree\Module | |
NODE_MOVE | 'move' | kartik\tree\Module | |
NODE_REMOVE | 'remove' | kartik\tree\Module | |
NODE_SAVE | 'save' | kartik\tree\Module | |
VIEW_PART_1 | 1 | kartik\tree\Module | |
VIEW_PART_2 | 2 | kartik\tree\Module | |
VIEW_PART_3 | 3 | kartik\tree\Module | |
VIEW_PART_4 | 4 | kartik\tree\Module | |
VIEW_PART_5 | 5 | kartik\tree\Module |
Property Details
The configuration of additional data attributes for the tree
The configuration of nested set attributes structure
The default configuration settings for the tree view widget
public array $treeViewSettings = ['nodeView' => '@kvtree/views/_form', 'nodeAddlViews' => [self::VIEW_PART_1 => '', self::VIEW_PART_2 => '', self::VIEW_PART_3 => '', self::VIEW_PART_4 => '', self::VIEW_PART_5 => '']]
The list of asset bundles that would be unset when rendering the node detail form via ajax
public array $unsetAjaxBundles = ['yii\web\YiiAsset', 'yii\web\JqueryAsset', 'yii\widgets\ActiveFormAsset', 'yii\validators\ValidationAsset']