10 * @class Roo.bootstrap.Link
11 * @extends Roo.bootstrap.Component
12 * Bootstrap Link Class
13 * @cfg {String} alt image alternative text
14 * @cfg {String} href a tag href
15 * @cfg {String} target (_self|_blank|_parent|_top) target for a href.
16 * @cfg {String} html the content of the link.
21 * @param {Object} config The config object
24 Roo.bootstrap.Link = function(config){
25 Roo.bootstrap.Link.superclass.constructor.call(this, config);
31 * The img click event for the img.
32 * @param {Roo.EventObject} e
38 Roo.extend(Roo.bootstrap.Link, Roo.bootstrap.Component, {
46 getAutoCreate : function(){
50 cls: (this.imgResponsive) ? 'img-responsive' : '',
54 cfg.html = this.html || cfg.html;
56 cfg.src = this.src || cfg.src;
58 if (['rounded','circle','thumbnail'].indexOf(this.border)>-1) {
59 cfg.cls += ' img-' + this.border;
76 a.target = this.target;
82 return (this.href) ? a : cfg;
85 initEvents: function() {
88 this.el.on('click', this.onClick, this);
94 Roo.log('img onclick');
95 this.fireEvent('click', this, e);