@@ -22,14 +22,15 @@ const stories = storiesOf('Toast UI Grid', module).addDecorator(withKnobs);
2222
2323stories . add ( 'Normal' , ( ) => < Grid columns = { columns } data = { data } header = { { height : 60 } } /> ) ;
2424
25- stories . add ( 'Set Language' , ( ... args ) => {
25+ stories . add ( 'Set Language' , ( ) => {
2626 const options = {
2727 ko : 'ko' ,
2828 en : 'en'
2929 } ;
3030 const lang = radios ( 'Language' , options , 'ko' ) ;
3131 const Story = ( ) => {
3232 TuiGrid . setLanguage ( lang ) ;
33+
3334 return < Grid columns = { columns } data = { [ ] } /> ;
3435 } ;
3536
@@ -45,6 +46,7 @@ stories.add('Apply Theme', () => {
4546 const theme = radios ( 'Theme' , options , 'normal' ) ;
4647 const Story = ( ) => {
4748 TuiGrid . applyTheme ( theme ) ;
49+
4850 return < Grid columns = { columns } data = { data } /> ;
4951 } ;
5052
@@ -79,7 +81,7 @@ stories.add('Using Method', () => {
7981 grid = null ;
8082
8183 componentDidMount ( ) {
82- this . grid = this . ref . current . getGridInstance ( ) ;
84+ this . grid = this . ref . current . getInstance ( ) ;
8385 }
8486
8587 handleClickAppend = ( ) => {
@@ -116,7 +118,6 @@ stories.add('Events', () => {
116118} ) ;
117119
118120stories . add ( 'Reactive Props' , ( ) => {
119- const rows = data . slice ( 0 , 10 ) ;
120121 const dataValue = object ( 'data' , data . slice ( 0 , 5 ) ) ;
121122 const columnsValue = object ( 'columns' , columns ) ;
122123 const bodyHeightValue = number ( 'bodyHeight' , 300 , {
@@ -129,7 +130,7 @@ stories.add('Reactive Props', () => {
129130 min : 0 ,
130131 max : 4
131132 } ) ;
132- const reactivePropsValue = array ( 'reactiveProps ' , [ ] ) ;
133+ const oneTimeBindingProps = array ( 'oneTimeBindingProps ' , [ ] ) ;
133134
134135 return (
135136 < Grid
@@ -138,7 +139,7 @@ stories.add('Reactive Props', () => {
138139 pagination = { false }
139140 bodyHeight = { bodyHeightValue }
140141 frozenColumnCount = { frozenColumnCountValue }
141- oneTimeBindingProps = { reactivePropsValue }
142+ oneTimeBindingProps = { oneTimeBindingProps }
142143 />
143144 ) ;
144145} ) ;
@@ -149,7 +150,7 @@ stories.add('Addon Net', () => {
149150 mock ( {
150151 url : 'api/readData' ,
151152 responseTime : 0 ,
152- response : function ( settings ) {
153+ response ( settings ) {
153154 const { page, perPage} = settings . data ;
154155 const start = ( page - 1 ) * perPage ;
155156 const end = start + perPage ;
0 commit comments