Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Rihab 68 posts 269 karma points
    Dec 06, 2018 @ 09:42
    Rihab
    0

    Umbraco.slider Property type Tooltip format

    hi Everyone,

    I'm trying to use the Umbraco.slider property type, I've searched the internet for a documentation but I couldn't find any.so I'll ask here.

    I want to change the tooltip to show '$' sign instead of number For example :

    I want the slider to show $ instead of 1, $$ instead of 2, $$$ instead of 3 ... ext...

    I can't figure out what to write in the tooltip format option so if someone can help me that would be greate :)

    thanks.

  • Dave Woestenborghs 3205 posts 10708 karma points MVP 4x admin c-trib
    Dec 06, 2018 @ 10:06
    Dave Woestenborghs
    100

    Hi,

    I don't think the scenario is possible.

    If you look at the description of the tooltip prevalue it says the following :

    The value wanted to be displayed in the tooltip. Use {0} and {1} for current values - {1} is only for range slider and if not using tooltip split.

    So what you can do is this use the following format :

    ${0}
    

    This will be changed in $1, $2, etc..

    Dave

  • Rihab 68 posts 269 karma points
    Dec 06, 2018 @ 10:23
    Rihab
    0

    Hi Dave, thank you for the reply,

    so I can't write "if, else " in the tooltip format ?

    thanks

  • Dave Woestenborghs 3205 posts 10708 karma points MVP 4x admin c-trib
    Dec 06, 2018 @ 10:27
    Dave Woestenborghs
    0

    Hi,

    No you can not. Unfortunatly.

    But what you can create a new feature request : https://github.com/umbraco/Umbraco-CMS/issues

    No garantuee that it will ever get's built. But it could start a discussion.

    Dave

Please Sign in or register to post replies

Write your reply to:

Draft