SmartClient Version: v12.0p_2019-04-23/LGPL Deployment (built 2019-04-23)
Chrone Version 74.0.3729.131 (Official Build) (64-bit)
I want boolean values edited on all ListGrids to use a different, smaller, checkbox style than checkboxes in DynamicForms. This is the approach I came up with from digging through the SC source code, but I suspect it's not the best way.
load_skin.js:
Is there a cleaner way to accomplish this?
Chrone Version 74.0.3729.131 (Official Build) (64-bit)
I want boolean values edited on all ListGrids to use a different, smaller, checkbox style than checkboxes in DynamicForms. This is the approach I came up with from digging through the SC source code, but I suspect it's not the best way.
load_skin.js:
Code:
isc.ListGrid.addMethods({ getFieldType : function skin_ListGrid_getFieldType(field, values) { return "boolean" === field.type ? "SmallCheckboxItem" : field.type; } }); isc.ClassFactory.defineClass("SmallCheckboxItem", "CheckboxItem").addProperties({ checkedImage: "sprite:cssClass:checkboxSmallTrue;size:18,18", uncheckedImage: "sprite:cssClass:checkboxSmallFalse;size:18,18", valueIconWidth:18, valueIconHeight:18 });
Comment