2015-06-05 11:06:36 +02:00
|
|
|
'use strict';
|
|
|
|
|
2015-05-22 16:51:08 +02:00
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
let TableItemSubtableButton = React.createClass({
|
|
|
|
|
|
|
|
propTypes: {
|
2015-05-26 13:14:35 +02:00
|
|
|
content: React.PropTypes.string.isRequired,
|
|
|
|
onClick: React.PropTypes.func.isRequired
|
2015-05-22 16:51:08 +02:00
|
|
|
},
|
|
|
|
|
|
|
|
render() {
|
|
|
|
return (
|
|
|
|
<span>
|
2015-05-27 09:56:26 +02:00
|
|
|
<button type="button" className="btn btn-default btn-sm ascribe-table-expand-button" onClick={this.props.onClick}>
|
2015-05-22 16:51:08 +02:00
|
|
|
{this.props.content}
|
|
|
|
</button>
|
|
|
|
</span>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
export default TableItemSubtableButton;
|