Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    valueMap for slider

    Is it possible to do this? I want to be able to set key,value pairs.

    Just found a valueMap property for SliderItem but I do not see it being applied.

    Code:
    isc.DynamicForm.create({
        width: 200,
        fields: [
            { name: "rating", title: "Rating", editorType: "slider",width: 200, titleOrientation: "top",
    valueMap: {
                1 : "<b>United States</b>",
                2 : "China",
                3 : "<b>Japan</b>",
                4 : "India",
                5 : "Germany",
                6 : "France",
                7 : "Italy",
                8 : "Russia",
                9 : "<b>Brazil</b>",
                0 : "Canada",
                11 : "Mexico",
                12 : "Spain"
            }}
        ]
    });
    Last edited by acarur01; 9 Aug 2010, 05:40.

    #2
    No, sorry, right now Sliders only support numeric ranges. Radio buttons are a good way to display what you want in this case.

    Comment

    Working...
    X