其中一種方式

{
    xtype: "displayfield",
    html: '<img src="/images/ok.png" />',
    listeners: {
        render: function(cmp) {
            new Ext.ToolTip({
                id: 'sample_tip',
                target: cmp.getEl(),
                html: 'tip here'
            });
        }
    }
}

 

 

arrow
arrow
    全站熱搜

    JohnDX 發表在 痞客邦 留言(0) 人氣()