File tree Expand file tree Collapse file tree 1 file changed +17
-15
lines changed
src/examples/basicExample Expand file tree Collapse file tree 1 file changed +17
-15
lines changed Original file line number Diff line number Diff line change @@ -98,21 +98,23 @@ const App = React.createClass({
9898 </ span >
9999 < h3 > Demo</ h3 >
100100
101- < SortableTree
102- treeData = { this . state . treeData }
103- updateTreeData = { treeData => this . setState ( { treeData } ) }
104- generateNodeProps = { ( {
105- node : _node ,
106- path : _path ,
107- lowerSiblingCounts : _lowerSiblingCounts ,
108- listIndex : _listIndex ,
109- } ) => ( {
110- buttons : [
111- < button > +</ button > ,
112- < button > ℹ</ button > ,
113- ] ,
114- } ) }
115- />
101+ < div style = { { height : 500 } } >
102+ < SortableTree
103+ treeData = { this . state . treeData }
104+ updateTreeData = { treeData => this . setState ( { treeData } ) }
105+ generateNodeProps = { ( {
106+ node : _node ,
107+ path : _path ,
108+ lowerSiblingCounts : _lowerSiblingCounts ,
109+ listIndex : _listIndex ,
110+ } ) => ( {
111+ buttons : [
112+ < button > +</ button > ,
113+ < button > ℹ</ button > ,
114+ ] ,
115+ } ) }
116+ />
117+ </ div >
116118
117119 < h3 > Features</ h3 >
118120 < ul >
You can’t perform that action at this time.
0 commit comments