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:
parent
083ea7d3a6
commit
5907986330
1 changed files with 2 additions and 2 deletions
|
@ -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}>
|
||||
|
|
Loading…
Add table
Reference in a new issue