import React from 'react'; import TableColumnMixin from '../mixins/table_column_mixin'; import GeneralUtils from '../utils/general_utils'; let TableHeader = React.createClass({ mixins: [TableColumnMixin], propTypes: { columnMap: React.PropTypes.object.isRequired }, render() { let columnMapValuesList = GeneralUtils.valuesOfObject(this.props.columnMap); return (
{columnMapValuesList.map((val, i) => { let columnClass = this.calcColumnClasses(this.props.columnMap, i); return (
{val.displayName}
); })}
); } }); export default TableHeader;