Hi,
If a timeItem defines a textBoxStyle, this style is always directly applied without taking into consideration if the item is disabled.
Tested with this snippet in http://www.smartclient.com/#Welcome (version ISC_100_BRANCH_2014-12-09_1418144730_wayne_limegreen-dev-server):
If a timeItem defines a textBoxStyle, this style is always directly applied without taking into consideration if the item is disabled.
Tested with this snippet in http://www.smartclient.com/#Welcome (version ISC_100_BRANCH_2014-12-09_1418144730_wayne_limegreen-dev-server):
Code:
isc.ClassFactory.defineClass('MyTime', isc.TimeItem);
isc.MyTime.addProperties({
textBoxStyle: 'textItem',
useTextField: true
});
isc.DynamicForm.create({
ID: 'exampleForm',
width: 250,
fields: [{
title: 'time1',
type: 'MyTime',
required: true,
defaultValue: '10:20'
},{
title: 'time2',
type: 'MyTime',
required: false,
defaultValue: '10:20'
},{
title: 'time3',
disabled: true,
type: 'MyTime',
defaultValue: '10:20'
}]
});
Comment