1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/web/ synced 2025-03-09 00:00:01 +01:00

table widget: limited decimals number

This commit is contained in:
Ricardo Hernandez-Montoya 2017-04-03 16:44:26 +02:00
parent 083ea7d3a6
commit 5907986330

View file

@ -48,7 +48,7 @@ class WidgetTable extends Component {
nextProps.data[simulator].values.forEach((signal, index) => {
rows.push({
name: simulationModel.mapping[index].name,
value: signal[signal.length - 1].y
value: signal[signal.length - 1].y.toFixed(3)
})
});
@ -57,7 +57,7 @@ class WidgetTable extends Component {
render() {
return (
<div style={{ width: '100%', height: '100%' }}>
<div>
<h4>{this.props.widget.name}</h4>
<Table data={this.state.rows}>