PDA

View Full Version : Overloading a formelement to have a button



lukaslentner
26 Mar 2010, 6:52 AM
Hi guys,

is there a possibillity to easily get on the left of the label of a formelement a button (to make the property sticky) and to configure the


Appearence
Icon

I guess I have to overload the old element. How do I do it??

Mercy
Lukas

tobiu
26 Mar 2010, 7:19 AM
hi lukas,

i you mean something like in this screen, i only have a workaround for you:



,fieldLabel : '<img ext:qtitle="Information" ext:qtip="'+bT.l.changePriceInfo+'" '
+ 'style="position:absolute; margin-left:162px;" src="../images/icons/information.png">'
+ bT.l.price


to make it cleaner, you should extend ext.form.field and integrate it into the construction of fieldlabel and add configs for icon etc.


kind regards,
tobiu

lukaslentner
9 Jun 2010, 3:08 AM
Thankx, that did it!