PHP Класс kartik\tree\TreeView

С версии: 1.0
Автор: Kartik Visweswaran ([email protected])
Наследование: extends kartik\base\Widget
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$alertFadeDuration animation duration (ms) for fading in and out alerts that are displayed during manipulation of nodes.
$allowNewRoots allow new root creation.
$autoLoadBsPlugin whether to auto load the bootstrap plugin assets if showTooltips is true OR if TreeViewInput::asDropdown is true. Defaults to true.
$breadcrumbs the breadcrumbs settings for displaying the current node title based on parent hierarchy in the node details form/view (starting from the current node). The following settings are supported: - depth: int, the depth to dig into the parent nodes for fetching the breadcrumb titles. If set to null or 0 this will fetch breadcrumbs till infinite parent depth. Defaults to null. - glue: string, the separator to glue each node name within the breadcrumbs. Defaults to . - activeCss: string, the CSS class to be applied to the current node name in the breadcrumbs. Defaults to kv-crumb-active. - untitled: string, the title to be displayed if this is a new untitled node record. Defaults to Untitled.
$buttonGroupOptions the HTML attributes for the button groups within the toolbar.
$buttonIconOptions the default HTML attributes for the toolbar button icons
$buttonOptions the default HTML attributes for the toolbar buttons
$cacheSettings cache settings for displaying the detail form content for each tree node via ajax. The following options are supported: - enableCache: bool, defaults to true. - cacheTimeout: int, the cache timeout in milliseconds. Defaults to 300000 (or 5 minutes).
$checkedNodeOptions the HTML attributes for the indicator which will represent a checked checkbox. The following special options are recognized: - 'label': string, the label for the indicator. If not set will default to: - if fontAwesome is true - if fontAwesome is false
$childNodeIconOptions the HTML attributes for the child node icon.
$clientMessages the configuration of various client alert messages
$collapseNodeOptions the HTML attributes for the indicator for collapsing a node. The following special options are recognized: - 'label': string, the label for the indicator. If not set will default to: - if fontAwesome is true - if fontAwesome is false
$defaultChildNodeIcon the icon markup for the child node if no icon was setup in the database.
$defaultParentNodeIcon the icon markup for the collapsed parent node if no icon was setup in the database.
$defaultParentNodeOpenIcon the icon markup for the opened parent node if no icon was setup in the database.
$detailOptions the HTML attributes for the detail form container which will display the details of the selected node
$displayValue the initial value (key) to be selected in the tree and displayed in the detail form. Defaults to 1.
$emptyNodeMsg message shown on tree initialization when either the entire tree is empty or no node is found for the selected displayValue.
$emptyNodeMsgOptions HTML attributes for the empty node message displayed.
$expandNodeOptions the HTML attributes for the indicator for expanding a node. The following special options are recognized: - 'label': string, the label for the indicator. If not set will default to: - if fontAwesome is true - if fontAwesome is false
$fontAwesome whether to use font awesome icons. Defaults to false.
$footerOptions the HTML attributes for the tree footer container.
$footerTemplate the template for rendering the footer
$headerOptions the HTML attributes for the tree header container
$headerTemplate the template for rendering the header
$headingOptions the HTML attributes for the heading. The following additional option is recognized: label: the label to display for the heading
$iconEditSettings settings to edit the icon. The following settings are recognized: - show: string, whether to display the icons selection as a list. If set to 'text', the icon will be shown as a plain text input along with icon type. If set to 'list', a list will be shown. If set to 'none', then no icon settings will be shown for editing. - type: string, the iconTypeAttribute value, defaults to TreeView::ICON_CSS. Should be one of TreeView::ICON_CSS or TreeView::ICON_RAW. - listData: array, the configuration of the icon list data to be shown for selection. This is mandatory if you set show to 'list'. You must set the data as $key => $value format. The list will be parsed to display the icon list and will depend on the type. - If type = TreeView::ICON_CSS: $key will be the icon suffix name and $value will be the description for the icon. The icon markup will be automatically parsed then based on whether its a glyphicon or font-awesome when fontAwesome property is true. For example: [ 'folder-close' => 'Folder', 'file' => 'File', 'tag' => 'Tag' ] - If type = TreeView::ICON_RAW: $key is the icon markup to be stored and $value is the output markup to be displayed as a selection in the list. For example: [ '' => 'Folder', '' => 'File', '' => 'Tag', ]
$isAdmin whether the tree is to be allowed for editing in admin mode. This will display all nodes and will allow to modify internal tree node flags. Defaults to false.
$mainTemplate the main template for rendering the tree view navigation widget and the node detail view form.
$multiple whether to allow multiple selection of checkboxes. Defaults to true. If set to false will not show a checkbox and allow only single selection of tree nodes.
$nodeActions the actions for managing, deleting, and moving the tree nodes. The keys must be one of 'manage', 'save', 'remove', and 'move'. Defaults to: [ 'save' => Url::to(['/treemanager/node/save']), 'manage' => Url::to(['/treemanager/node/manage']), 'remove' => Url::to(['/treemanager/node/remove']), 'move' => Url::to(['/treemanager/node/move']), ]
$nodeAddlViews the list of additional view files that will be used to append content at various sections in the nodeView form.
$nodeCheckboxOptions the HTML attributes for the node checkbox indicator for all items in the tree
$nodeFormOptions the HTML attributes for the node detail form.
$nodeLabel the value to customize a tree node's label. - if set as an array, the array key must be the node key value (i.e. keyAttribute) and array value will be the new node label you want to assign. - if set as a Closure, the callback function must be of the signature function($node)}, where $node will represent each tree node's model object instance. If a value is not traceable through above methods, the database tree node name will be displayed (as parsed via nameAttribute).
$nodeToggleOptions the HTML attributes for the node toggle indicator for each parent item in the tree
$nodeView the view file that will render the form for editing the node.
$options the HTML attributes for the input that will store the selected nodes for the widget
$parentNodeIconOptions the HTML attributes for the parent node icon.
$query the query that will be used as the data source for the TreeView. For example: Tree::find()->addOrderBy('root, lft')
$rootNodeCheckboxOptions the HTML attributes for the root node's checkbox indicator
$rootNodeToggleOptions the HTML attributes for the root node's toggle indicator
$rootOptions the HTML attributes for the topmost root node container. The following special options are recognized: - label: string, the label for the topmost root node (this is not HTML encoded). Defaults to 'Root'. Set this to empty to not display a label.
$searchClearOptions the HTML attributes for the search clear indicator
$searchContainerOptions the HTML attributes for the search container
$searchOptions the HTML attributes for the search input
$showCheckbox whether to show a checkbox before each tree node label to allow multiple node selection.
$showFormButtons whether to show the form action buttons in the node details form/view.
$showIDAttribute whether to show the key attribute (ID) in the node details form/view.
$showInactive whether to show inactive nodes
$showTooltips show toolbar button tooltips (using bootstrap tooltip plugin). The BootstrapPluginAsset will automatically be loaded if this is set to true.
$softDelete whether the record will be soft deleted, when remove button is clicked. Defaults to true. The following actions are possible: - If true, this will just set the active property of node to false. - If false, it will attempt to hard delete the whole record.
$toolbar the settings for the tree management toolbar
$toolbarOptions the HTML attributes for the toolbar.
$toolbarOrder the sorting order of the buttons in the toolbar. Each item in this array should be one of the button keys as set in the toolbar array keys (except for BTN_SEPARATOR which will be parsed as is). Note that, if this is set, then only the button keys configured here will be displayed (irrespective of the toolbar setup). Hence one must ensure that all the toolbar button keys are set here to display all the toolbar buttons.
$treeOptions the HTML attributes for the tree selector container
$treeWrapperOptions the HTML attributes for the wrapper container for the tree header, body, and footer.
$uncheckedNodeOptions the HTML attributes for the indicator which will represent an unchecked checkbox. The following special options are recognized: - 'label': string, the label for the indicator. If not set will default to: - if fontAwesome is true - if fontAwesome is false
$value the comma separated initial value (keys) to be checked and selected in the tree
$wrapperTemplate the wrapper template for rendering the tree view navigation widget

Защищенные свойства (Protected)

Свойство Тип Описание
$_hasBootstrap whether to load the bootstrap plugin asset
$_iconPrefix the icon prefix
$_iconsList the icons list
$_module the tree management module.
$_nodeSelected session identifier for the selected node id
$_nodes the queried tree nodes

Открытые методы

Метод Описание
begin ( $config = [] )
getConfig ( array $config = [] ) : array Generates the configuration for the widget based on module level defaults
init ( )
initOptions ( ) Initialize all options & settings for the widget
module ( ) : kartik\tree\Module Returns the tree view module
registerAssets ( ) Registers the client assets for the widget
renderDetail ( ) : string Renders the markup for the detail form to edit/view the selected tree node
renderFooter ( ) : string Renders the markup for the tree footer container
renderHeader ( ) : string Renders the markup for the tree header container
renderHeading ( ) : string Renders the markup for the tree heading
renderRoot ( ) : string Renders the root markup for the tree
renderSearch ( ) : string Renders the markup for the search input
renderToolbar ( ) : string Renders the markup for the button actions toolbar
renderTree ( ) : string Renders the markup for the tree hierarchy - uses a fast non-recursive mode of tree traversal.
renderWidget ( ) : string Renders the widget markup
renderWrapper ( ) : string Renders the tree wrapper container
run ( )
widget ( $config = [] )

Защищенные методы

Метод Описание
getCheckboxIcon ( boolean $checked = false ) : string Gets the checkbox icon based on fontAwesome setting
getIconsList ( ) : string Renders the markup for the detail form to edit/view the selected tree node
getNodeIcon ( integer $type ) : string Gets the default node icon markup
getToggleIcon ( string $action = 'collapse' ) : string Gets the default toggle icon based on fontAwesome setting
initSelectedNode ( ) : void Initializes the selected node
initTreeView ( ) Initializes and validates the tree view configurations
parseBool ( boolean $var ) : integer Parses a boolean variable and returns as integer
renderCheckboxIcon ( boolean $checked = false ) : string Renders the checkbox icon markup based on fontAwesome setting
renderCheckboxIconContainer ( boolean $root = false ) : string Renders the checkbox icon container
renderIcon ( string $icon, array $options = [] ) : string Renders a generic icon using icon suffix
renderNodeIcon ( string $icon, integer $iconType, boolean $child = true ) : string Render the default node icon markup
renderToggleIcon ( string $action = 'collapse' ) : string Renders the default toggle icon markup based on fontAwesome setting
renderToggleIconContainer ( boolean $root = false ) : string Renders the toggle icon container
sortToolbar ( ) Sorts the toolbar based on toolbarOrder configuration
usesTrait ( string $class, string $trait, boolean $autoload = false ) : boolean Check if the trait is used by a specific class or recursively by any of the parent classes or parent traits
validateSourceData ( ) Validation of source query data

Описание методов

begin() публичный статический Метод

public static begin ( $config = [] )

getCheckboxIcon() защищенный Метод

Gets the checkbox icon based on fontAwesome setting
protected getCheckboxIcon ( boolean $checked = false ) : string
$checked boolean whether 'checked'
Результат string

getConfig() публичный статический Метод

Generates the configuration for the widget based on module level defaults
public static getConfig ( array $config = [] ) : array
$config array the widget configuration
Результат array

getIconsList() защищенный Метод

Renders the markup for the detail form to edit/view the selected tree node
protected getIconsList ( ) : string
Результат string

getNodeIcon() защищенный Метод

Gets the default node icon markup
protected getNodeIcon ( integer $type ) : string
$type integer 1 = child, 2 = parent, 3 = parent open
Результат string

getToggleIcon() защищенный Метод

Gets the default toggle icon based on fontAwesome setting
protected getToggleIcon ( string $action = 'collapse' ) : string
$action string whether 'collapse' or 'expand'
Результат string

init() публичный Метод

public init ( )

initOptions() публичный Метод

Initialize all options & settings for the widget
public initOptions ( )

initSelectedNode() защищенный Метод

Initializes the selected node
protected initSelectedNode ( ) : void
Результат void

initTreeView() защищенный Метод

Initializes and validates the tree view configurations
protected initTreeView ( )

module() публичный статический Метод

Returns the tree view module
public static module ( ) : kartik\tree\Module
Результат kartik\tree\Module

parseBool() защищенный статический Метод

Parses a boolean variable and returns as integer
protected static parseBool ( boolean $var ) : integer
$var boolean the variable to parse
Результат integer

registerAssets() публичный Метод

Registers the client assets for the widget
public registerAssets ( )

renderCheckboxIcon() защищенный Метод

Renders the checkbox icon markup based on fontAwesome setting
protected renderCheckboxIcon ( boolean $checked = false ) : string
$checked boolean whether 'checked'
Результат string

renderCheckboxIconContainer() защищенный Метод

Renders the checkbox icon container
protected renderCheckboxIconContainer ( boolean $root = false ) : string
$root boolean whether its a root node
Результат string

renderDetail() публичный Метод

Renders the markup for the detail form to edit/view the selected tree node
public renderDetail ( ) : string
Результат string

renderFooter() публичный Метод

Renders the markup for the tree footer container
public renderFooter ( ) : string
Результат string

renderHeader() публичный Метод

Renders the markup for the tree header container
public renderHeader ( ) : string
Результат string

renderHeading() публичный Метод

Renders the markup for the tree heading
public renderHeading ( ) : string
Результат string

renderIcon() защищенный Метод

Renders a generic icon using icon suffix
protected renderIcon ( string $icon, array $options = [] ) : string
$icon string the icon suffix name
$options array the HTML attributes for the icon container
Результат string

renderNodeIcon() защищенный Метод

Render the default node icon markup
protected renderNodeIcon ( string $icon, integer $iconType, boolean $child = true ) : string
$icon string the current node's icon
$iconType integer the current node's icon type, must be one of: - `TreeView::ICON_CSS` or `1`: if the icon css class suffix name is stored in $icon. - `TreeView::ICON_RAW` or `2`: if the raw icon markup is stored in $icon.
$child boolean whether child or parent
Результат string

renderRoot() публичный Метод

Renders the root markup for the tree
public renderRoot ( ) : string
Результат string

renderSearch() публичный Метод

Renders the markup for the search input
public renderSearch ( ) : string
Результат string

renderToggleIcon() защищенный Метод

Renders the default toggle icon markup based on fontAwesome setting
protected renderToggleIcon ( string $action = 'collapse' ) : string
$action string whether 'collapse' or 'expand'
Результат string

renderToggleIconContainer() защищенный Метод

Renders the toggle icon container
protected renderToggleIconContainer ( boolean $root = false ) : string
$root boolean whether a root node
Результат string

renderToolbar() публичный Метод

Renders the markup for the button actions toolbar
public renderToolbar ( ) : string
Результат string

renderTree() публичный Метод

Renders the markup for the tree hierarchy - uses a fast non-recursive mode of tree traversal.
public renderTree ( ) : string
Результат string

renderWidget() публичный Метод

Renders the widget markup
public renderWidget ( ) : string
Результат string

renderWrapper() публичный Метод

Renders the tree wrapper container
public renderWrapper ( ) : string
Результат string

run() публичный Метод

public run ( )

sortToolbar() защищенный Метод

Sorts the toolbar based on toolbarOrder configuration
protected sortToolbar ( )

usesTrait() защищенный статический Метод

Check if the trait is used by a specific class or recursively by any of the parent classes or parent traits
protected static usesTrait ( string $class, string $trait, boolean $autoload = false ) : boolean
$class string the class name to check
$trait string the trait class name
$autoload boolean whether to autoload the class
Результат boolean whether the class has used the trait

validateSourceData() защищенный Метод

Validation of source query data
protected validateSourceData ( )

widget() публичный статический Метод

public static widget ( $config = [] )

Описание свойств

$_hasBootstrap защищенное свойство

whether to load the bootstrap plugin asset
protected $_hasBootstrap

$_iconPrefix защищенное свойство

the icon prefix
protected $_iconPrefix

$_iconsList защищенное свойство

the icons list
protected $_iconsList

$_module защищенное свойство

the tree management module.
protected $_module

$_nodeSelected защищенное свойство

session identifier for the selected node id
protected $_nodeSelected

$_nodes защищенное свойство

the queried tree nodes
protected $_nodes

$alertFadeDuration публичное свойство

animation duration (ms) for fading in and out alerts that are displayed during manipulation of nodes.
public $alertFadeDuration

$allowNewRoots публичное свойство

allow new root creation.
public $allowNewRoots

$autoLoadBsPlugin публичное свойство

whether to auto load the bootstrap plugin assets if showTooltips is true OR if TreeViewInput::asDropdown is true. Defaults to true.
public $autoLoadBsPlugin

$breadcrumbs публичное свойство

the breadcrumbs settings for displaying the current node title based on parent hierarchy in the node details form/view (starting from the current node). The following settings are supported: - depth: int, the depth to dig into the parent nodes for fetching the breadcrumb titles. If set to null or 0 this will fetch breadcrumbs till infinite parent depth. Defaults to null. - glue: string, the separator to glue each node name within the breadcrumbs. Defaults to . - activeCss: string, the CSS class to be applied to the current node name in the breadcrumbs. Defaults to kv-crumb-active. - untitled: string, the title to be displayed if this is a new untitled node record. Defaults to Untitled.
public $breadcrumbs

$buttonGroupOptions публичное свойство

the HTML attributes for the button groups within the toolbar.
public $buttonGroupOptions

$buttonIconOptions публичное свойство

the default HTML attributes for the toolbar button icons
public $buttonIconOptions

$buttonOptions публичное свойство

the default HTML attributes for the toolbar buttons
public $buttonOptions

$cacheSettings публичное свойство

cache settings for displaying the detail form content for each tree node via ajax. The following options are supported: - enableCache: bool, defaults to true. - cacheTimeout: int, the cache timeout in milliseconds. Defaults to 300000 (or 5 minutes).
public $cacheSettings

$checkedNodeOptions публичное свойство

the HTML attributes for the indicator which will represent a checked checkbox. The following special options are recognized: - 'label': string, the label for the indicator. If not set will default to: - if fontAwesome is true - if fontAwesome is false
public $checkedNodeOptions

$childNodeIconOptions публичное свойство

the HTML attributes for the child node icon.
public $childNodeIconOptions

$clientMessages публичное свойство

the configuration of various client alert messages
public $clientMessages

$collapseNodeOptions публичное свойство

the HTML attributes for the indicator for collapsing a node. The following special options are recognized: - 'label': string, the label for the indicator. If not set will default to: - if fontAwesome is true - if fontAwesome is false
public $collapseNodeOptions

$defaultChildNodeIcon публичное свойство

the icon markup for the child node if no icon was setup in the database.
public $defaultChildNodeIcon

$defaultParentNodeIcon публичное свойство

the icon markup for the collapsed parent node if no icon was setup in the database.
public $defaultParentNodeIcon

$defaultParentNodeOpenIcon публичное свойство

the icon markup for the opened parent node if no icon was setup in the database.
public $defaultParentNodeOpenIcon

$detailOptions публичное свойство

the HTML attributes for the detail form container which will display the details of the selected node
public $detailOptions

$displayValue публичное свойство

the initial value (key) to be selected in the tree and displayed in the detail form. Defaults to 1.
public $displayValue

$emptyNodeMsg публичное свойство

message shown on tree initialization when either the entire tree is empty or no node is found for the selected displayValue.
public $emptyNodeMsg

$emptyNodeMsgOptions публичное свойство

HTML attributes for the empty node message displayed.
public $emptyNodeMsgOptions

$expandNodeOptions публичное свойство

the HTML attributes for the indicator for expanding a node. The following special options are recognized: - 'label': string, the label for the indicator. If not set will default to: - if fontAwesome is true - if fontAwesome is false
public $expandNodeOptions

$fontAwesome публичное свойство

whether to use font awesome icons. Defaults to false.
public $fontAwesome

$footerOptions публичное свойство

the HTML attributes for the tree footer container.
public $footerOptions

$footerTemplate публичное свойство

the template for rendering the footer
public $footerTemplate

$headerOptions публичное свойство

the HTML attributes for the tree header container
public $headerOptions

$headerTemplate публичное свойство

the template for rendering the header
public $headerTemplate

$headingOptions публичное свойство

the HTML attributes for the heading. The following additional option is recognized: label: the label to display for the heading
public $headingOptions

$iconEditSettings публичное свойство

settings to edit the icon. The following settings are recognized: - show: string, whether to display the icons selection as a list. If set to 'text', the icon will be shown as a plain text input along with icon type. If set to 'list', a list will be shown. If set to 'none', then no icon settings will be shown for editing. - type: string, the iconTypeAttribute value, defaults to TreeView::ICON_CSS. Should be one of TreeView::ICON_CSS or TreeView::ICON_RAW. - listData: array, the configuration of the icon list data to be shown for selection. This is mandatory if you set show to 'list'. You must set the data as $key => $value format. The list will be parsed to display the icon list and will depend on the type. - If type = TreeView::ICON_CSS: $key will be the icon suffix name and $value will be the description for the icon. The icon markup will be automatically parsed then based on whether its a glyphicon or font-awesome when fontAwesome property is true. For example: [ 'folder-close' => 'Folder', 'file' => 'File', 'tag' => 'Tag' ] - If type = TreeView::ICON_RAW: $key is the icon markup to be stored and $value is the output markup to be displayed as a selection in the list. For example: [ '' => 'Folder', '' => 'File', '' => 'Tag', ]
public $iconEditSettings

$isAdmin публичное свойство

whether the tree is to be allowed for editing in admin mode. This will display all nodes and will allow to modify internal tree node flags. Defaults to false.
public $isAdmin

$mainTemplate публичное свойство

the main template for rendering the tree view navigation widget and the node detail view form.
public $mainTemplate

$multiple публичное свойство

whether to allow multiple selection of checkboxes. Defaults to true. If set to false will not show a checkbox and allow only single selection of tree nodes.
public $multiple

$nodeActions публичное свойство

the actions for managing, deleting, and moving the tree nodes. The keys must be one of 'manage', 'save', 'remove', and 'move'. Defaults to: [ 'save' => Url::to(['/treemanager/node/save']), 'manage' => Url::to(['/treemanager/node/manage']), 'remove' => Url::to(['/treemanager/node/remove']), 'move' => Url::to(['/treemanager/node/move']), ]
public $nodeActions

$nodeAddlViews публичное свойство

the list of additional view files that will be used to append content at various sections in the nodeView form.
public $nodeAddlViews

$nodeCheckboxOptions публичное свойство

the HTML attributes for the node checkbox indicator for all items in the tree
public $nodeCheckboxOptions

$nodeFormOptions публичное свойство

the HTML attributes for the node detail form.
public $nodeFormOptions

$nodeLabel публичное свойство

the value to customize a tree node's label. - if set as an array, the array key must be the node key value (i.e. keyAttribute) and array value will be the new node label you want to assign. - if set as a Closure, the callback function must be of the signature function($node)}, where $node will represent each tree node's model object instance. If a value is not traceable through above methods, the database tree node name will be displayed (as parsed via nameAttribute).
public $nodeLabel

$nodeToggleOptions публичное свойство

the HTML attributes for the node toggle indicator for each parent item in the tree
public $nodeToggleOptions

$nodeView публичное свойство

the view file that will render the form for editing the node.
public $nodeView

$options публичное свойство

the HTML attributes for the input that will store the selected nodes for the widget
public $options

$parentNodeIconOptions публичное свойство

the HTML attributes for the parent node icon.
public $parentNodeIconOptions

$query публичное свойство

the query that will be used as the data source for the TreeView. For example: Tree::find()->addOrderBy('root, lft')
public $query

$rootNodeCheckboxOptions публичное свойство

the HTML attributes for the root node's checkbox indicator
public $rootNodeCheckboxOptions

$rootNodeToggleOptions публичное свойство

the HTML attributes for the root node's toggle indicator
public $rootNodeToggleOptions

$rootOptions публичное свойство

the HTML attributes for the topmost root node container. The following special options are recognized: - label: string, the label for the topmost root node (this is not HTML encoded). Defaults to 'Root'. Set this to empty to not display a label.
public $rootOptions

$searchClearOptions публичное свойство

the HTML attributes for the search clear indicator
public $searchClearOptions

$searchContainerOptions публичное свойство

the HTML attributes for the search container
public $searchContainerOptions

$searchOptions публичное свойство

the HTML attributes for the search input
public $searchOptions

$showCheckbox публичное свойство

whether to show a checkbox before each tree node label to allow multiple node selection.
public $showCheckbox

$showFormButtons публичное свойство

whether to show the form action buttons in the node details form/view.
public $showFormButtons

$showIDAttribute публичное свойство

whether to show the key attribute (ID) in the node details form/view.
public $showIDAttribute

$showInactive публичное свойство

whether to show inactive nodes
public $showInactive

$showTooltips публичное свойство

show toolbar button tooltips (using bootstrap tooltip plugin). The BootstrapPluginAsset will automatically be loaded if this is set to true.
public $showTooltips

$softDelete публичное свойство

whether the record will be soft deleted, when remove button is clicked. Defaults to true. The following actions are possible: - If true, this will just set the active property of node to false. - If false, it will attempt to hard delete the whole record.
public $softDelete

$toolbar публичное свойство

the settings for the tree management toolbar
public $toolbar

$toolbarOptions публичное свойство

the HTML attributes for the toolbar.
public $toolbarOptions

$toolbarOrder публичное свойство

the sorting order of the buttons in the toolbar. Each item in this array should be one of the button keys as set in the toolbar array keys (except for BTN_SEPARATOR which will be parsed as is). Note that, if this is set, then only the button keys configured here will be displayed (irrespective of the toolbar setup). Hence one must ensure that all the toolbar button keys are set here to display all the toolbar buttons.
public $toolbarOrder

$treeOptions публичное свойство

the HTML attributes for the tree selector container
public $treeOptions

$treeWrapperOptions публичное свойство

the HTML attributes for the wrapper container for the tree header, body, and footer.
public $treeWrapperOptions

$uncheckedNodeOptions публичное свойство

the HTML attributes for the indicator which will represent an unchecked checkbox. The following special options are recognized: - 'label': string, the label for the indicator. If not set will default to: - if fontAwesome is true - if fontAwesome is false
public $uncheckedNodeOptions

$value публичное свойство

the comma separated initial value (keys) to be checked and selected in the tree
public $value

$wrapperTemplate публичное свойство

the wrapper template for rendering the tree view navigation widget
public $wrapperTemplate