Search code examples
fieldsencha-touchreadonly

Readonly property on Field SenchaTouch


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'
}

Solution

  • 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.