You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| id | Number/String | An ID that uniquely identifies this node within the tree | - | Yes |
153
+
| label | String | The text to show in the treeview | - | Yes |
154
+
| expandable | Boolean | True to show a toggle for expanding nodes' subnode lists |`true`||
155
+
| selectable | Boolean | True to allow the node to be selected*|`false`||
156
+
| input | Object | Contains data specific to the node's `input` element |`null`||
157
+
| input.type | String | The type of input; valid values are `checkbox` or `radio`| - | Yes**|
158
+
| input.name | String | The name attribute of the input; used with `radio` type |`'unspecifiedRadioName'`||
159
+
| input.value | String | The value attribute of the input; used with `radio` type |`label`'s value***||
160
+
| state | Object | Contains the current state of the node | - ||
161
+
| state.expanded | Boolean | True if this node's subnode list is expanded |`false`||
162
+
| state.selected | Boolean | True if the node is selected*|`false`||
163
+
| state.input | Object | Contains any state related to the input field |`{}` for checkbox, otherwise - ||
164
+
| state.input.value | Boolean | Contains the value of the input |`false` for checkbox, otherwise - ||
165
+
| state.input.disabled | Boolean | True if the node's input field is disabled |`false`||
166
+
| children | Array\<Object\>| The child nodes of this node |`[]`||
167
+
| customizations | Object | A [customizations](#customizing-treeviewnode-markup) object |`{}`||
166
168
167
169
\* Selection props are unused; see [#5](https://github.com/grapoza/vue-tree/issues/5).
168
170
@@ -201,8 +203,30 @@ The display of the treeview can be customized via CSS using the following classe
201
203
|`tree-view-node-self-expanded-indicator`| The `<i>` element containing the expansion indicator |
202
204
|`tree-view-node-self-spacer`| An empty spacer to replace fixed-width elements, _e.g._ the expander or checkbox |
203
205
|`tree-view-node-self-label`| The label for the checkbox of checkable nodes |
204
-
|`tree-view-node-self-input`| Any type of input node within the tree node|
206
+
|`tree-view-node-self-input`| Any type of input field within the tree node |
205
207
|`tree-view-node-self-checkbox`| The checkbox |
206
208
|`tree-view-node-self-radio`| The radio button |
207
209
|`tree-view-node-self-text`| The text for a non-input node |
208
-
|`tree-view-node-children`| The list of child nodes |
210
+
|`tree-view-node-children`| The list of child nodes |
211
+
212
+
## Customizing TreeViewNode Markup
213
+
214
+
It's often helpful to be able to make adjustments to the markup for the tree. You can provide an object to the `customizations` property of the tree to set a customization affecting all nodes, or to the `customizations` property of a single node. Node-specific customizations will either add to or replace tree-level customizations (see Override Behavior in the table below for specifics).
215
+
216
+
A customizations object may have the following properties:
0 commit comments