SmartClient Version: v9.0p_2013-08-06/LGPL Development Only (built 2013-08-06)
IE 9.0.8112.16421
I am attempting to do some custom skinning of SelectItem and ComboBoxItem. I want different looks for the picker icon in differnt context. Sometimes I want to use the standard look and sometimes I want to use my custom look.
I have been able to switch to my custom look by adding the following to a .js file that I load after load_skin.js. However, that changes them everywhere in my app.
I have been unsuccessful in finding a way to override these settings on a specific instance of SelectItem instead of all of them.
After my override I have attempted to get a specific SelectItem to show the standard look by adding code like:
This has no affect and the defaults I set in my js are still used.
Can you point in in the correct direction on how to override the image/style being used on a per-SelectItem basis?
IE 9.0.8112.16421
I am attempting to do some custom skinning of SelectItem and ComboBoxItem. I want different looks for the picker icon in differnt context. Sometimes I want to use the standard look and sometimes I want to use my custom look.
I have been able to switch to my custom look by adding the following to a .js file that I load after load_skin.js. However, that changes them everywhere in my app.
Code:
if (isc.SelectItem && (!isc.Browser.isIE || isc.Browser.version >= 7)) {
isc.SelectItem.changeDefaults("pickerIconDefaults", {
src: "[SKINIMG]Product/IPickTreeButton/menu_button.png",
baseStyle: "menuButton",
iconWidth:18,
iconHeight:22,
showFocusedAsOver:true
});
}After my override I have attempted to get a specific SelectItem to show the standard look by adding code like:
Code:
pickerItem.setPickerIconSrc("none");
pickerItem.setPickerIconStyle("comboBoxItemPicker");Can you point in in the correct direction on how to override the image/style being used on a per-SelectItem basis?