import React from 'react'; import { Row, Col } from 'react-bootstrap'; import { Card, ReactTable, ReactGrid, Profile } from '../../components/index'; import { generateName } from '../mock-data'; /** * Initial page that declare all routes of the module */ export default class ReacttableExample extends React.Component { constructor(props) { super(props); this.gridCellRender = this.gridCellRender.bind(this); this.state = { }; } componentWillMount() { const lst = []; for (var i = 0; i < 15; i++) { const res = generateName(); lst.push({ name: res.name, gender: res.gender, status: 'Status of ' + res.name, quantity: Math.random() * 1000 + 1000 }); } this.setState({ values: lst }); } expandRender(item) { return (