Start sencha touch 2 Tour 3

Source: Internet
Author: User

Now we have seen a relatively decent shot home page. Next let's make some extensions. We first use fictitious data to display the latest blog on a separate tab.ArticleList (displayed in list ). Here we select severalHttp://sencha.com/blog. About listCodeWe wrote it under the "home" tab (click the preview button to see the Running code sample ).

Ext. Application ({

Name: 'sencha ',

 

Launch :(){

Ext. Create ("Ext. tabpanel ",{

Fullscreen: True,

Tabbarposition: 'bottom ',

 

Items :[

{

Title: 'home ',

Iconcls: 'home ',

CLS: 'home ',

HTML :[

' ',

'<H1> welcome to sencha touch

"<P> you're creating the Getting Started app. This demonstrates how ",

"To use tabs, lists and forms to create a simple app </P> ",

'<H2> sencha touch (2.0.0pr1) </H2>'

]. Join ("")

},

{

Xtype: 'LIST ',

Title: 'blog ',

Iconcls: 'star ',

 

Itemtpl: '{Title }',

Store :{

Fields: ['title', 'url'],

Data :[

{Title: 'ext scheduler 100', URL: 'ext-scheduler-2-0-upgrading-to-ext-js-4 '},

{Title: 'previewing sencha touch 2', URL: 'sencha-touch-2-what-to-know CT '},

{Title: 'sencha con 2011 ', URL: 'senchacon-2011-now-packed-with-more-goodness '},

{Title: 'documentation in ext JS 4', URL: 'New-ext-js-4-documentation-center '}

]

}

}

]

}). Setactiveitem (1 );

}

});

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.