PDA

View Full Version : Link Button



same66
11 Feb 2011, 6:44 AM
Hi,

I want a Link Button for my web application, but with a button design.
I just want add a "a href" in my button with a target="_blank"

It is possible to do that ?

Do you can help me ?

Chau
11 Feb 2011, 7:02 AM
If you search this forum, you would have found lots of answers to build on.

Animal has made an extension you can use: Here (http://www.sencha.com/forum/showthread.php?80639-Ext.LinkButton-A-button-class-which-renders-an-lt-a-gt-element.&highlight=LinkButton)

same66
11 Feb 2011, 7:26 AM
heu... thank you for the link but...

how to use an ExtJS template ?

If I use the Animal's code, how to do to create a linkButton ?
to declare ?

Thanks :)

lukefowell89
11 Feb 2011, 7:33 AM
to be honest I just put handler on the button and do



{
xtype: 'button',
text: 'button',
handler: function() {
window.open('http://www.google.com');
}
}

same66
11 Feb 2011, 7:38 AM
With button, is'nt possible to specify the target, no ?


I just want add a "a href" in my button with a target="_blank"

I want my link in the same browser but in a new tab.