Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Increase and Decrease Icons for Spinner

$
0
0
Hi,

Environment consists of the following:
1. SmartClient Version: v10.0p_2015-06-30/Enterprise Development Only (built 2015-06-30)
2. Chrome: Version 43.0.2357.130 m

I am trying to change the increase and decrease icon's of the spinner component but I cannot seem to do so. In the code below (../isomorphic/system/reference/SmartClient_Explorer.html#variousControls) I have set the increaseIcon and decreaseIcon properties but I see no change at all. Please can you advise on the correct way to do this?

Code:

isc.DynamicForm.create({
    width: 400,
    fields: [
        {title:"Text", type:"text", hint: "<nobr>A plain text field</nobr>"},
        {title:"Color Picker", type:"color"},
        {title:"TextArea", type:"textArea"},
        {title: "Stacked Spinner", editorType: "spinner", writeStackedIcons: true,
        defaultValue: 5, min: 0, max: 10, step: 0.5,
               
                increaseIcon:"icons/16/approved.png",
                decreaseIcon:"icons/16/approved.png"
               
                },
        {title: "Unstacked Spinner", editorType: "spinner", writeStackedIcons: false,
        defaultValue: 5, min: 0, max: 10, step: 0.5},
        {title: "Slider", name: "slider", editorType: "slider", width: 180,
        minValue: 1, maxValue: 5, numValues: 5, height: isc.Browser.isTouch ? 52 : 36},
        {title: "LinkItem", type: "link", name: "link", height: 36, target: "javascript",
        click: "isc.say('Hello world!')", linkTitle: "<br>Click Me<br>"},
        {title: "Checkbox", type: "checkbox", height: 25},
        {title: "Radio Group", type: "radioGroup",
        valueMap: ["Option 1", "Option 2"]}
    ],
    values: { slider: 4 }
});

isc.DynamicForm.create({
    top: isc.Browser.isTouch ? 420 : 400,
    width: 500,
    numCols: 4,
    isGroup: true,
    groupTitle: "List - ComboBox",
    fields : [{
        name: "bugStatus", title: "Bug Status",
        editorType: "comboBox",
        valueMap : {
            "new" : "New",
            "active" : "Active",
            "revisit" : "Revisit",
            "fixed" : "Fixed",
            "delivered" : "Delivered",
            "resolved" : "Resolved",
            "reopened" : "Reopened"
        }
    },{
        name: "itemName", title: "Item Name", editorType: "comboBox",
        optionDataSource: "supplyItem", pickListWidth: 250
    }]
});

Thanks
Kem

Viewing all articles
Browse latest Browse all 4756

Trending Articles