I am trying to create a SelectItem subclass with some customized pickList properties. According to documentation pickList is an AutoChild so something like this should work:
But my custom bodyBackgroundColor isn't getting applied.
This can be tested on https://smartclient.com/smartclient/...id=multiSelect. SmartClient versions:
Code:
isc.defineClass("MyMultiSelectItem", "SelectItem")
isc.MyMultiSelectItem.addProperties({multiple: true});
isc.MyMultiSelectItem.changeDefaults("pickListDefaults", {"bodyBackgroundColor":"red"});
isc.DynamicForm.create({
ID:"exampleForm",
width:450,
fields: [
{
type:"select",
title:"Select",
editorType: "MyMultiSelectItem",
valueMap: {
"US" : "United States",
"CH" : "China",
"JA" : "Japan",
"IN" : "India",
"GM" : "Germany",
"FR" : "France",
"IT" : "Italy",
"RS" : "Russia",
"BR" : "Brazil",
"CA" : "Canada",
"MX" : "Mexico",
"SP" : "Spain"
}
},
]
});
This can be tested on https://smartclient.com/smartclient/...id=multiSelect. SmartClient versions:
- v14.1p_2026-01-10/AllModules Development Only
- v13.1p_2026-01-14/AllModules Development Only
Comment