PDA

View Full Version : How to use a button as a form field like in ExtJS 3.4?



subn3t
28 Jun 2016, 10:54 AM
In ExtJS 3.4, I could use a button as a form input like this:
https://fiddle.sencha.com/#fiddle/1cpt

I can do the same thing in ExtJS4+ but without a label:
https://fiddle.sencha.com/#fiddle/1cpv

Is there a better way to achieve this in ExtJS4+ than with something like this:
https://fiddle.sencha.com/#fiddle/1cq5

Gary Schlosberg
28 Jun 2016, 2:08 PM
I don't see a fieldLabel config for a button starting in 4.x, so I think the behavior is by design. Looks like you may have found the best possible workaround.