This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Mosaic widget editor numeric element
#1
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.
Reply
#2
Use the +/- element and set step to 0.1
------------------------------
Ctrl+F5
Reply
#3
(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
Reply
#4
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;
}
Reply
#5
(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
Reply
#6
(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!
Reply


Forum Jump: