See it in action on jsfiddle: http://jsfiddle.net/hnPbm/
See the sample code for more details:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
xtype: 'image', | |
src: 'icons/google.png', | |
//defines the element that wraps around the image | |
autoEl: { | |
tag: 'a', | |
href: 'http://www.google.com', | |
target: '_blank' | |
//add any other attributes to the 'a' tag as needed | |
} | |
} |
No comments:
Post a Comment