/** * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * FACEBOOK BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ "use strict"; var ExampleImage = require('./helpers/ExampleImage'); var FakeObjectDataListStore = require('./helpers/FakeObjectDataListStore'); var FixedDataTable = require('fixed-data-table'); var React = require('react'); const {Table, Column, Cell} = FixedDataTable; const DateCell = ({rowIndex, data, col, ...props}) => ( {data.getObjectAt(rowIndex)[col].toLocaleString()} ); const ImageCell = ({rowIndex, data, col, ...props}) => ( ); const LinkCell = ({rowIndex, data, col, ...props}) => ( {data.getObjectAt(rowIndex)[col]} ); const TextCell = ({rowIndex, data, col, ...props}) => ( {data.getObjectAt(rowIndex)[col]} ); class ObjectDataExample extends React.Component { constructor(props) { super(props); this.state = { dataList: new FakeObjectDataListStore(1000000), }; } render() { var {dataList} = this.state; return ( } fixed={true} width={50} /> First Name} cell={} fixed={true} width={100} /> Last Name} cell={} fixed={true} width={100} /> City} cell={} width={100} /> Street} cell={} width={200} /> Zip Code} cell={} width={200} /> Email} cell={} width={200} /> DOB} cell={} width={200} />
); } } module.exports = ObjectDataExample;