Skip to content

Commit 3e97443

Browse files
committed
Sort properties
1 parent 9650fff commit 3e97443

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,9 @@ class Widget extends React.Component {
6767
6868
| Property | Type | Description | Default |
6969
| ------------------ | -------- | ------------------------------------------------------------------------------------------------ | ----------- |
70-
| `nodes` | array | **Required**. Specifies the tree nodes and their children. | |
7170
| `checked` | array | **Required**. An array of checked node values. | |
7271
| `expanded` | array | **Required**. An array of expanded node values. | |
72+
| `nodes` | array | **Required**. Specifies the tree nodes and their children. | |
7373
| `onCheck` | function | **Required**. onCheck handler: `function(checked) {}` | |
7474
| `onExpand` | function | **Required**. onExpand handler: `function(expanded) {}` | |
7575
| `name` | string | Optional name for the hidden `<input>` element. | `undefined` |

examples/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ class Widget extends React.Component {
116116

117117
return (
118118
<Tree
119-
name="airports"
120-
nodes={nodes}
121119
checked={checked}
122120
expanded={expanded}
121+
name="airports"
122+
nodes={nodes}
123123
onCheck={this.onCheck}
124124
onExpand={this.onExpand}
125125
/>

0 commit comments

Comments
 (0)