Langsung ke konten utama

Set Attribut Read Only dengan background abu-abu

{   
   border:false,
   margin: '5px 0px 0px 5px',
   items: [{
    xtype      : 'fieldcontainer',    
    items: [{     
      xtype      : 'textfield',
      width: 75,
      id         : 'batch_des',
      name       : 'batch_des',
      allowBlank : true,
      readOnly : true,
            fieldStyle  :'background-image:none;background-color:#BDBDBD', 
    }]
   }]
  }

Komentar

Popular Posts

Extjs html class render

Ext.select('.datepicker').each(function(el){ new Ext.form.DateField({ allowBlank : true, renderTo: el, format:'m-d-Y', editable:false, width:140, fieldCls : 'tanggal x-form-field x-form-text x-trigger-noedit', }); }); Ext.select('.note').each(function(el){ new Ext.form.field.TextArea({ allowBlank : false, renderTo: el, grow : true, hideLabel : true, fieldCls : 'pesan x-form-field x-form-text x-trigger-noedit', }); });