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, {
43 getAutoCreate : function(){
47 html : this.html || 'html-missing'
54 cfg.href = this.href || '#';
56 cfg.target = this.target;
62 initEvents: function() {
65 this.el.on('click', this.onClick, this);
71 Roo.log('img onclick');
72 this.fireEvent('click', this, e);