diff options
author | Geireann Lindfield Roberts <60007097+geireann@users.noreply.github.com> | 2022-06-30 12:42:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-30 12:42:10 -0700 |
commit | fee343f6a4103661a9aeea1eefe94058a9a074c6 (patch) | |
tree | f4b18b179c6b94edb672405e09ea453fbea80b5e /src/client/views/nodes/DataVizBox/TableBox.tsx | |
parent | ea6e63648b21c46672b1b7cb1da0cbaa6857d0c1 (diff) | |
parent | 03c958f8ac95c65e77c337c6ecc4cd6b49f79175 (diff) |
Merge pull request #70 from brown-dash/data-visualization-view-naafi
Data visualization view naafi
Diffstat (limited to 'src/client/views/nodes/DataVizBox/TableBox.tsx')
-rw-r--r-- | src/client/views/nodes/DataVizBox/TableBox.tsx | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/client/views/nodes/DataVizBox/TableBox.tsx b/src/client/views/nodes/DataVizBox/TableBox.tsx new file mode 100644 index 000000000..dfa8262d8 --- /dev/null +++ b/src/client/views/nodes/DataVizBox/TableBox.tsx @@ -0,0 +1,37 @@ +import { action, computed, observable } from "mobx"; +import { observer } from "mobx-react"; +import * as React from "react"; + +interface TableBoxProps { + pairs: {x: number, y:number}[] +} + + +export class TableBox extends React.Component<TableBoxProps> { + + + + render() { + return ( + <div className="table-container"> + <table className="table"> + <thead> + <tr className="table-row"> + <th>x</th> + <th>y</th> + </tr> + </thead> + <tbody> + {this.props.pairs.map(p => { + return (<tr className="table-row"> + <td>{p.x}</td> + <td>{p.y}</td> + </tr>) + })} + </tbody> + </table> + </div> + ) + } + +}
\ No newline at end of file |