react-toolbox/docs/app/components/layout/main/modules/examples/table_example_1.txt

26 lines
497 B
Plaintext
Raw Normal View History

2015-11-04 06:25:33 +03:00
const UserModel = {
name: {type: String}
,
twitter: {type: String}
,
birthdate: {type: Date}
,
cats: {type: Number}
,
dogs: {type: Number}
,
active: {type: Boolean}
};
const users = [
{name: 'Javi Jimenez', twitter: '@soyjavi', birthdate: new Date(1980, 3, 11), cats: 1}
,
{name: 'Javi Velasco', twitter: '@javivelasco', birthdate: new Date(1987, 1, 1), dogs: 1, active: true}
];
const TableTest = () => (
<Table model={UserModel} dataSource={users} />
)
return <TableTest />