开发者

help with adding an url href

i am confused about how i can add a link to the following code

    o开发者_如何学运维nReady: function() {
    new Ext.TabPanel({
        fullscreen: true,
        type: 'dark',
        sortable: true,
        items: [{
            title: 'Tab 1',
            html: '1',
            cls: 'card1'

to be able to directly load a url when i click the Tab 1. This code is from the sencha touch template. I want the htm part to be able to load a url when that tab is selected. thanks


You can use autoLoad config option for this.

You can try,

  onReady: function() {
new Ext.TabPanel({
    fullscreen: true,
    type: 'dark',
    sortable: true,
    items: [{
        title: 'Tab 1',
       autoLoad   : {
                       url :youryrl,
                       scripts:true,
                        callback: function(){ yourcallbackfunction(); }
                     },

for detailed documentation, refer

http://examples.extjs.eu/

http://dev.sencha.com/deploy/dev/docs/

http://dev.sencha.com/deploy/ext/docs/output/Ext.TabPanel.html

http://www.sencha.com/learn/Tutorial:TabPanel_Basics

Hope this helps.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜