HTML Elements Forums Slider Numbers after decimal point

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 1 month, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #99436

    hansT
    Participant

    Hello !

    I’m using a slider without scale marks that has it’s scale type set to floatingPoint. Also i’ve set the showTooltip property in order to have the tooltip. The problem is that i want the value to only have two numbers after the decimal point. Is that possible ? If possible, can you give me a code snippet please.

    Thank you

    #99440

    Dimitar
    Participant

    Hello hansT,

    To achieve this, please set the property precisionDigits, i.e.:
    <smart-slider show-tooltip precision-digits="2"></smart-slider>

    Best regards,
    Dimitar

    Smart HTML Elements Team
    https://www.htmlelements.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.