A元素控件 img元素控件 都该干些什么?

解决方案 »

  1.   

    items: [  {
                xtype: 'button',
                href: 'http://bbs.csnd.net',
                text: 'csdn'
            }, {
                xtype: 'button',border:false,
                icon: 'http://csdnimg.cn/pubfooter/images/gongshang_logos.gif'
            }]
    button就做行了要么就 panel,设置html配置为'<img src="xxx"/><a href="xxx">xxx</a>'
      

  2.   

    造个a component 还不容易。
    关键是做这个a 能干什么。
    Ext.define('My.A',{
    extend:'Ext.Component',
    xtype:'a',
    renderTpl:'<a href="#">xxxxxx</a>'
    });Ext.create('My.A',{
    renderTo:'div1'
    });items: [  {
                xtype: 'a',
    }]
      

  3.   

    img有组件类型xtype : 'image',链接好像是没有的,不过可以自己做