PDA

View Full Version : ExtJs3.4 - CheckBox need show not [X] but text true/false. Is it Possible



olgol_g
24 Apr 2013, 4:16 AM
Hello,
I am using ExtJs3.4
I use checkbox in ordinal way.
But in some cases depend on user role
I need show not disabled square [] .Meaning that user can not change the value,
But text as true/false
Is it possible to do it using one checkbox?
is it possable to hide only [] part of checkbox component?
I see the diff between CheckBox and TextField is

{tag: 'input', type: 'checkbox'
{tag: 'input', type: 'text',

Can I change type on runtime?

Or I need use two components

mitchellsimoens
26 Apr 2013, 5:56 AM
So you want to show text instead of the checkbox on click? Can do this with a Component with a click listener and the update method.