PDA

View Full Version : Costum trigger for WebSite ,Facebook.



anis23
2 Apr 2014, 2:39 AM
Hello ,
I want to have fields in my form for entering a website with a clickable icon , that would open my website on a new page (same for Facebook, Twiter ..)
I want to use Ext.form.TriggerField component, but how to have a costum trigger.
thanks.

anis23
5 Apr 2014, 11:58 PM
Is my question not clear or not feasible?

willigogs
6 Apr 2014, 8:56 AM
A more detailed explanation of what you're trying to achieve might help :)

anis23
6 Apr 2014, 11:55 AM
Something like this (for the facebook example)
48588

willigogs
7 Apr 2014, 2:18 AM
I've never personally used a triggerField, as I've always simply gone with a separate textfield and button conbination which call the same submit function on hitting "Enter" or clicking the button.

However, there is an example of a triggerField on the examples page which you may find useful:
http://dev.sencha.com/deploy/ext-3.4.0/examples/form/custom.html

anis23
7 Apr 2014, 8:05 AM
I have not found what I was looking at this link. But your answer helped me, I will simply used textField and button with hbox layout.
Thank you.