Property |
Type |
Description |
|
$asDropdown |
|
whether to show the input as a dropdown select. If set to false, it will display directly the tree
view selector widget. Defaults to true. The BootstrapPluginAsset will automatically be loaded if this is
set to true. Defaults to true. |
|
$attribute |
|
the model attribute that this widget is associated with. |
|
$autoCloseOnSelect |
|
whether to autoclose the dropdown on input selection when asDropdown is true. Defaults to true. |
|
$dropdownConfig |
|
the configuration of the tree view dropdown. The following
configuration options are available:
- input: array the HTML attributes for the dropdown input container which displays
the selected tree items. The following special options are available:
- placeholder: string, defaults to Select...
- dropdown: array, the HTML attributes for the dropdown tree view menu.
- options: array, the HTML attributes for the wrapper container
- caret: string, the markup for rendering the dropdown indicator for up and down.
Defaults to TreeViewInput::CARET. |
|
$model |
|
the data model that this widget is associated with. |
|
$name |
|
the input name. This must be set if [[model]] and [[attribute]] are not set. |
|
$options |
|
the HTML attributes for the input that will store the
selected nodes for the widget |
|
$showToolbar |
|
whether to show the toolbar in the footer. Defaults to false. |
|
$value |
|
the input value. |
|