1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-22 17:33:14 +01:00
onion/js/components/ascribe_table/table_item.js

31 lines
727 B
JavaScript
Raw Normal View History

'use strict';
import React from 'react';
import { ColumnModel } from './models/table_models';
2015-05-26 20:20:17 +02:00
import TableItemWrapper from './table_item_wrapper';
2015-05-20 16:44:45 +02:00
let TableItem = React.createClass({
2015-05-20 14:48:57 +02:00
propTypes: {
columnList: React.PropTypes.arrayOf(React.PropTypes.instanceOf(ColumnModel)),
2015-05-26 16:48:48 +02:00
columnContent: React.PropTypes.object,
2015-07-08 17:35:30 +02:00
className: React.PropTypes.string,
onClick: React.PropTypes.func
2015-05-20 14:48:57 +02:00
},
2015-05-20 12:09:35 +02:00
render() {
return (
2015-06-04 17:21:38 +02:00
<TableItemWrapper
2015-07-08 17:35:30 +02:00
onClick={this.props.onClick}
2015-06-04 17:21:38 +02:00
columnList={this.props.columnList}
columnContent={this.props.columnContent}
columnWidth={12} />
);
}
});
2015-05-20 16:44:45 +02:00
export default TableItem;