import React from 'react'; import TableColumnMixin from '../../mixins/table_column_mixin'; import TableHeaderItem from './table_header_item'; import TableColumnContentModel from '../../models/table_column_content_model'; let TableHeader = React.createClass({ mixins: [TableColumnMixin], propTypes: { columnList: React.PropTypes.arrayOf(React.PropTypes.instanceOf(TableColumnContentModel)), itemList: React.PropTypes.array.isRequired, changeOrder: React.PropTypes.func, orderAsc: React.PropTypes.bool, orderBy: React.PropTypes.string }, render() { return (
{this.props.columnList.map((val, i) => { let columnClasses = this.calcColumnClasses(this.props.columnList, i, 12); let columnName = this.props.columnList[i].columnName; let canBeOrdered = this.props.columnList[i].canBeOrdered; return ( ); })}
); } }); export default TableHeader;