mirror of
https://git.rwth-aachen.de/acs/public/villas/web/
synced 2025-03-23 00:00:02 +01:00
34 lines
875 B
JavaScript
34 lines
875 B
JavaScript
/**
|
|
* File: table-column.js
|
|
* Author: Markus Grigull <mgrigull@eonerc.rwth-aachen.de>
|
|
* Date: 06.03.2017
|
|
* Copyright: 2017, Institute for Automation of Complex Power Systems, EONERC
|
|
* This file is part of VILLASweb. All Rights Reserved. Proprietary and confidential.
|
|
* Unauthorized copying of this file, via any medium is strictly prohibited.
|
|
**********************************************************************************/
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
class TableColumn extends Component {
|
|
static defaultProps = {
|
|
title: '',
|
|
modifier: null,
|
|
width: null,
|
|
editButton: false,
|
|
deleteButton: false,
|
|
link: '/',
|
|
linkKey: '',
|
|
dataIndex: false,
|
|
inlineEditable: false
|
|
};
|
|
|
|
render() {
|
|
return (
|
|
<th width={this.props.width}>
|
|
{this.props.title}
|
|
</th>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default TableColumn;
|