PDA

View Full Version : no checkbox element in extjs 4.1?



asher2007
22 Jun 2012, 6:22 AM
when i add check box to my form its look like check box
but when i check it with firebug i discovered that its using "input type='button''
and not checkbox, now i found a very nice css code to make an iphone like toggel button using checkbox
element
i could create a panel with html property as follow 'input type='checkbox' and apply my css on it
but then i wont be able to listn to its event checked/unchecked
any workaround??

Tim Toady
22 Jun 2012, 6:32 AM
Checkbox was just an image sprite last I checked. It wouldn't be difficult to alter the way it looks. I doubt css meant for a non-Ext checkbox would work. I would probably use a toggle button though if I wanted a toggle button...

Also, if you are trying to develop a site for mobile devices, you want to use sencha touch.