# src/components/Instrument/ParameterTableWidget.js

## Maintainability

79.23

## Lines of code

27

## Difficulty

16.13

## Estimated Errors

0.17

## Function weight

### By Complexity

### By SLOC

import React from 'react'; import { Panel, Grid, Row, Col } from 'react-bootstrap'; class ParameterTableWidget extends React.Component { getColumns(names, values){ return <tbody> {names.map((name, i) => <tr><td>{names[i]}</td><td>{values[i]}</td></tr>)} </tbody>; } render(){ if (this.props.names){ if (this.props.values){ var names = this.props.names.trim().split(" "); var values = this.props.values.trim().split(" "); return <table className="table table-condensed table-hover"> {this.getColumns(names, values)} </table>; } } return null; } }; export default ParameterTableWidget;