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

Customizing SpinnerItem

$
0
0
SmartClient Version: v9.0p_2013-08-27/LGPL Development Only (built 2013-08-27)

IE 9.0.8112.16421

How do I dynamically customize the SpinnerItem form control if I want it to have different looks in different context within my application?

I was able to customize it globally by adding my own js file that is processed after load_skin.js. The js contains the following to customize the icons:

Code:

f (isc.SpinnerItem) {
    isc.SpinnerItem.INCREASE_ICON = isc.addProperties(isc.SpinnerItem.INCREASE_ICON, {
        width:16,
        height:10,
        showRollOver:true,
        showFocused:true,
        showDown:true,
        imgOnly:true,
        src:"[SKIN]/Product/PMSpinner/increase.png", baseStyle:"spinnerItemIncrease"
    });
    isc.SpinnerItem.DECREASE_ICON = isc.addProperties(isc.SpinnerItem.DECREASE_ICON, {
        width:16,
        height:10,
        showRollOver:true,
        showFocused:true,
        showDown:true,
        imgOnly:true,
        src:"[SKIN]/Product/PMSpinner/decrease.png", baseStyle:"spinnerItemDecrease"
    });
}

I cannot find any way to do this in my code so that I can dynamically switch it or set the defaults in my java code instead of js. How can this be done?

Viewing all articles
Browse latest Browse all 4756

Trending Articles