Now, tabpanel is displayed on the screen, but you can beautify the homepage.
The current page has at least the following issues:
- Placing tags on the top is not very nice.
- The home page buttons also seem monotonous.
- NO content.
Let's see how we did it. Modify the tabbarposition configuration item and add some HTML content:
Ext. Application ({
Name: 'sencha ',
Launch :(){
Ext. Create ("Ext. tabpanel ",{
Fullscreen: True,
Tabbarposition: 'bottom ',
Items :[
{
Title: 'home ',
Iconcls: '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 ("")
}
]
});
}
});
So far, some HTML content has been available, but the format effect is not so ideal and needs to be adjusted (click the preview button to viewCodeExample ). Set the HTML content style. To achieve better results, you only need to add the CLS configuration item to the Panel to achieve the goal. You can simply add a CSS class. CSS is defined in the examples/getting_started/app.css file. After adding CSS, our home page will look like this:
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 ("")
}
]
});
}
});