mirror of
https://github.com/apache/superset.git
synced 2026-05-07 17:04:58 +00:00
This is really just a mock up written in React to try different components. It could become scaffolding to build a prototype, or not.
24 lines
582 B
JavaScript
24 lines
582 B
JavaScript
import React from 'react';
|
|
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
|
|
|
|
const TableMetadata = function (props) {
|
|
return (
|
|
<BootstrapTable
|
|
condensed
|
|
data={props.table.columns}
|
|
>
|
|
<TableHeaderColumn dataField="id" isKey hidden>
|
|
id
|
|
</TableHeaderColumn>
|
|
<TableHeaderColumn dataField="name">Name</TableHeaderColumn>
|
|
<TableHeaderColumn dataField="type">Type</TableHeaderColumn>
|
|
</BootstrapTable>
|
|
);
|
|
};
|
|
|
|
TableMetadata.propTypes = {
|
|
table: React.PropTypes.object,
|
|
};
|
|
|
|
export default TableMetadata;
|