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 {
71
71
| ` nodes` | array | **Required**. Specifies the tree nodes and their children. |
72
72
| ` checked` | array | **Required**. An array of checked node values. |
73
73
| ` 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 ) {}` |
76
76
| ` name` | string | Optional name for the hidden ` < input> ` element. |
77
77
| ` 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';
5
5
6
6
class Tree extends React . Component {
7
7
static propTypes = {
8
+ checked : React . PropTypes . arrayOf ( React . PropTypes . string ) . isRequired ,
9
+ expanded : React . PropTypes . arrayOf ( React . PropTypes . string ) . isRequired ,
8
10
onCheck : React . PropTypes . func . isRequired ,
9
11
onExpand : React . PropTypes . func . isRequired ,
10
12
11
- checked : React . PropTypes . arrayOf ( React . PropTypes . string ) ,
12
- expanded : React . PropTypes . arrayOf ( React . PropTypes . string ) ,
13
13
name : React . PropTypes . string ,
14
14
nameAsArray : React . PropTypes . bool ,
15
15
nodes : React . PropTypes . arrayOf (
You can’t perform that action at this time.
0 commit comments