Hi i've been looking for the readOnly property for field in secnhatouch but haven't found it... can some one assist me on this matter
{
xtype: 'textfield',
name: 'ReferenceNumber',
readOnly:true,
label: 'Reference'
}
I ran into the same problem with readOnly: true
not working - I was able to fix it by adding an afterrender
listener:
{
xtype: 'textfield',
name: 'ReferenceNumber',
label: 'Reference',
listeners: {
afterrender: function(ele) {
ele.fieldEl.dom.readOnly = true;
}
}
}
I think you want the disabled field
{
xtype: 'textfield',
name: 'ReferenceNumber',
**disabled**: true,
value: '12312421',
label: 'Reference'
}
I overload the 'disabledCls' because it grey's out the label more than i want.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With