File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ Individual nodes within the `nodes` property can have the following structure:
110110
111111| Property | Type | Description |
112112| ----------- | ------ | ------------------------------- |
113- | ` label ` | string | ** Required** . The node's label. |
113+ | ` label ` | mixed | ** Required** . The node's label. |
114114| ` value ` | mixed | ** Required** . The node's value. |
115115| ` children ` | array | An array of child nodes. |
116116| ` className ` | string | A className to add to the node. |
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class TreeNode extends React.Component {
1010 disabled : PropTypes . bool . isRequired ,
1111 expandDisabled : PropTypes . bool . isRequired ,
1212 expanded : PropTypes . bool . isRequired ,
13- label : PropTypes . string . isRequired ,
13+ label : PropTypes . node . isRequired ,
1414 optimisticToggle : PropTypes . bool . isRequired ,
1515 showNodeIcon : PropTypes . bool . isRequired ,
1616 treeId : PropTypes . string . isRequired ,
Original file line number Diff line number Diff line change 11import PropTypes from 'prop-types' ;
22
33const nodeShape = {
4- label : PropTypes . string . isRequired ,
4+ label : PropTypes . node . isRequired ,
55 value : PropTypes . oneOfType ( [
66 PropTypes . string ,
77 PropTypes . number ,
You can’t perform that action at this time.
0 commit comments