File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ class Widget extends React.Component {
7171| ` nodes` | array | **Required**. Specifies the tree nodes and their children. |
7272| ` checked` | array | **Required**. An array of checked node values. |
7373| ` expanded` | array | **Required**. An array of expanded node values. |
74- | ` onCheck` | function | onCheck handler: ` function (checked ) {}` |
75- | ` onExpand` | function | onExpand handler: ` function (expanded ) {}` |
74+ | ` onCheck` | function | **Required**. onCheck handler: ` function (checked ) {}` |
75+ | ` onExpand` | function | **Required**. onExpand handler: ` function (expanded ) {}` |
7676| ` name` | string | Optional name for the hidden ` < input> ` element. |
7777| ` nameAsArray` | bool | If true, the hidden ` < input> ` will encode its values as an array rather than a joined string. |
Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ import nodeShape from './nodeShape';
55
66class Tree extends React . Component {
77 static propTypes = {
8+ checked : React . PropTypes . arrayOf ( React . PropTypes . string ) . isRequired ,
9+ expanded : React . PropTypes . arrayOf ( React . PropTypes . string ) . isRequired ,
810 onCheck : React . PropTypes . func . isRequired ,
911 onExpand : React . PropTypes . func . isRequired ,
1012
11- checked : React . PropTypes . arrayOf ( React . PropTypes . string ) ,
12- expanded : React . PropTypes . arrayOf ( React . PropTypes . string ) ,
1313 name : React . PropTypes . string ,
1414 nameAsArray : React . PropTypes . bool ,
1515 nodes : React . PropTypes . arrayOf (
You can’t perform that action at this time.
0 commit comments