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