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

edit textSize works again, added two missing customProperties in widget-factory

This commit is contained in:
Laura Fuentes Grau 2020-03-22 19:07:16 +01:00
parent 48c75f7b21
commit 4dab708eb3
2 changed files with 3 additions and 1 deletions

View file

@ -27,7 +27,7 @@ class EditWidgetTextSizeControl extends React.Component {
const sizes = [11, 12, 14, 16, 18, 20, 22, 24, 28, 32, 36, 40, 46, 52, 60, 72];
return (
<FormGroup controlId="textSize">
<FormGroup controlId="customProperties.textSize">
<FormLabel>Text size</FormLabel>
<FormControl as="select" value={this.props.widget.customProperties.textSize} onChange={e => this.props.handleChange(e)}>
{sizes.map((size, index) => (

View file

@ -97,6 +97,7 @@ class WidgetFactory {
widget.minWidth = 200;
widget.width = 300;
widget.height = 200;
widget.customProperties.showUnit = false;
break;
case 'Label':
widget.minWidth = 20;
@ -150,6 +151,7 @@ class WidgetFactory {
widget.customProperties.rangeMax = 200;
widget.customProperties.rangeUseMinMax = true;
widget.customProperties.showUnit = true;
widget.customProperties.continous_update = false;
break;
case 'Gauge':