Logic Machine Forum
Mosaic widget editor numeric element - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Visualization (https://forum.logicmachine.net/forumdisplay.php?fid=9)
+--- Thread: Mosaic widget editor numeric element (/showthread.php?tid=4341)



Mosaic widget editor numeric element - tigi - 02.11.2022

Hi,

Im designing a custom widget and added an element for showing and changing a numeric value.
I see however that the element itself does not show the floating number but an integer.
The value shows 40 whereas the real value is 39.99
   
Is there a way to change this?

Thanks in advance.


RE: Mosaic widget editor numeric element - Daniel - 02.11.2022

Use the +/- element and set step to 0.1


RE: Mosaic widget editor numeric element - CristianAgata - 02.11.2022

(02.11.2022, 18:02)Daniel Wrote: Use the +/- element and set step to 0.1

Hi Daniel, I take advantage from this post to ask you if it is possible add at this object (+/-) a way to change the dimensions, something it is very big versus the other objects in the widgets creator.
Best regards Cristian


RE: Mosaic widget editor numeric element - admin - 03.11.2022

It can be adjusted via CSS:
Code:
.widget-custom .temperature .value {
  height: 40px;
  line-height: 40px;
  width: 80px;
}
.widget-custom .temperature .ctrl {
  height: 30px;
  width: 30px;
}
.widget-custom .temperature .ctrl .fa {
  line-height: 30px;
  font-size: 20px;
}



RE: Mosaic widget editor numeric element - CristianAgata - 03.11.2022

(03.11.2022, 07:43)admin Wrote: It can be adjusted via CSS:
Code:
.widget-custom .temperature .value {
  height: 40px;
  line-height: 40px;
  width: 80px;
}
.widget-custom .temperature .ctrl {
  height: 30px;
  width: 30px;
}
.widget-custom .temperature .ctrl .fa {
  line-height: 30px;
  font-size: 20px;
}
Thanks


RE: Mosaic widget editor numeric element - tigi - 04.11.2022

(02.11.2022, 18:02)Daniel Wrote: Use the +/- element and set step to 0.1

Hi Daniel,
Thx for the tip, however the resolution is still not high enough.
I need 0.01 and even 0.001 resolution, I ended up designing it in Visu and that works perfectly.

Maybe an improvement to add an option to choose how much decimal places must be shown in mosaic.

Thanks!