var environmentList=this.state.returnJSONValue;
console.log("result for: environmentList hi :"+this.state.returnJSONValue);
return (
<div>
<div className="row">
<div className="col-lg-12">
<h3 className="page-header">
Docker Images
</h3>
</div>
</div>
<div className="row">
<div className="col-lg-3 col-md-6">
{environmentList}
</div>
</div>
<BootstrapTable data={environmentList} striped hover pagination>
<TableHeaderColumn isKey dataField='id'>#</TableHeaderColumn>
<TableHeaderColumn dataField='name'>Environment</TableHeaderColumn>
<TableHeaderColumn dataField='price'>Deploy</TableHeaderColumn>
</BootstrapTable>
</div>
)
I am using above code to create a table with react bootstrap and want to implement pagination on the table but i am getting the following error.Kindly let me know if any solution:
index.js:56493 Uncaught TypeError: Cannot read property 'slice' of undefined
at new BootstrapTable (index.js:56493)
at ReactCompositeComponentWrapper.mountComponent (index.js:14894)
at ReactCompositeComponentWrapper.wrapper [as mountComponent] (index.js:9084)
at Object.mountComponent (index.js:13276)
at ReactDOMComponent.mountChildren (index.js:21846)
at ReactDOMComponent._createContentMarkup (index.js:19021)
at ReactDOMComponent.mountComponent (index.js:18909)
at Object.mountComponent (index.js:13276)
at ReactCompositeComponentWrapper.mountComponent (index.js:14971)
at ReactCompositeComponentWrapper.wrapper [as mountComponent] (index.js:9084)