Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    timeItem doesn't render as disabled if it defines textBoxStyle

    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):

    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'
       }]
     });
    Last edited by martintaal; 16 Dec 2014, 07:51.

    #2
    This has been fixed for builds dated December 19 and later.

    Comment

    Working...
    X