浅谈Sencha Touch中图标icons案例实现

移动开发
Sencha Touch中图标icons案例实现是本文要介绍的内容,主要是来了解Sencha Touch中图标icons的应用,具体内容的实现来看本文详解。

Sencha Touch图标icons案例实现是本文要介绍的内容,主要是来了解Sencha Touch图标icons的应用。这个例子同样是用tabpanel来展示的,不过加入了icons。对于sencha touch来说,有许多内置的图标,相比之前的例子,我们这里多了dockitems,tabbar。有了这两个属性,整个程序就是一个记事本的原型了。

newExt.Application({  
launch:function(){  
newExt.TabPanel({  
fullscreen:true,  
ui:'dark',  
sortable:true,  
defaults:{  
cls:'cardcard3'  
},  
items:[{  
iconCls:'bookmarks',  
title:'Bookmarks',  
html:'Bothtoolbarsandtabbarshavebuilt-in,readytouseicons.Stylingcustomiconsisnohassle.  
Ifyoucan’tseeallofthebuttonsbelow,tryscrollingleft/right.  
,  
},{  
iconCls:'download',  
title:'Download',  
html:'PressedDownload'  
},{  
iconCls:'favorites',  
title:'Favorites',  
html:'PressedFavorites'  
},{  
iconCls:'info',  
title:'Info',  
html:'PressedInfo'  
},{  
iconCls:'more',  
title:'More',  
html:'PressedMore'  
},{  
iconCls:'search',  
title:'Search',  
html:'PressedSearch'  
},{  
iconCls:'settings',  
title:'Settings',  
html:'PressedSettings'  
},{  
iconCls:'team',  
title:'Team',  
html:'PressedTeam'  
},{  
iconCls:'time',  
title:'Time',  
html:'PressedTime'  
},{  
iconCls:'user',  
title:'User',  
html:'PressedUser'  
}],  
dockedItems:[{  
xtype:'toolbar',  
ui:'light',  
dock:'top',  
defaults:{  
iconMask:true,  
ui:'plain'  
},  
scroll:{  
direction:'horizontal',  
useIndicators:false  
 
},  
layout:{  
items:[{  
iconCls:'action'  
},{  
iconCls:'add'  
},{  
iconCls:'arrow_up'  
},{  
iconCls:'arrow_right'  
},{  
iconCls:'arrow_down'  
},{  
iconCls:'arrow_left'  
},{  
iconCls:'compose'  
},{  
iconCls:'delete'  
},{  
iconCls:'refresh'  
},{  
iconCls:'reply'  
},{  
iconCls:'search'  
},{  
iconCls:'star'  
},{  
iconCls:'home'  
},{  
iconCls:'locate'  
},{  
iconCls:'maps'  
},{  
iconCls:'trash'  
}]  
}],  
tabBar:{  
dock:'bottom',  
scroll:{  
direction:'horizontal',  
useIndicators:false  
},  
layout:{  
pack:'center'  
}  
}  
});  
}  
}); 
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50.
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.
  • 58.
  • 59.
  • 60.
  • 61.
  • 62.
  • 63.
  • 64.
  • 65.
  • 66.
  • 67.
  • 68.
  • 69.
  • 70.
  • 71.
  • 72.
  • 73.
  • 74.
  • 75.
  • 76.
  • 77.
  • 78.
  • 79.
  • 80.
  • 81.
  • 82.
  • 83.
  • 84.
  • 85.
  • 86.
  • 87.
  • 88.
  • 89.
  • 90.
  • 91.
  • 92.
  • 93.
  • 94.
  • 95.
  • 96.
  • 97.
  • 98.
  • 99.
  • 100.
  • 101.
  • 102.
  • 103.
  • 104.
  • 105.
  • 106.
  • 107.
  • 108.
  • 109.
  • 110.
  • 111.
  • 112.
  • 113.

小结:浅谈关于Sencha Touch图标icons的内容介绍完了,希望通过本文的学习能对你有所帮助!

责任编辑:zhaolei 来源: 互联网
相关推荐

2011-09-05 13:53:08

Sencha Touc列表

2011-09-05 12:49:59

Sencha Touc事件

2011-09-05 10:20:21

Sencha ToucAPP

2011-09-02 16:21:08

Sencha Touc自动生成工具

2011-09-05 10:27:02

Sencha Touc手机应用Android

2012-05-01 20:57:26

Sencha Touc

2011-09-02 15:18:49

Sencha Touc

2011-07-26 09:41:50

Sencha Touc特性HTML 5

2010-11-22 10:31:17

Sencha touc

2011-09-05 14:09:06

Sencha Touc函数

2011-07-25 15:55:21

Sencha ToucHtml 5

2011-09-02 15:12:29

PhoneGapSencha Touc

2011-07-25 16:21:22

Sencha touc

2011-07-26 09:46:53

Sencha Touc

2011-10-26 10:12:53

Sencha Touc布局

2011-11-28 13:42:55

Sencha Touc组件选择器

2011-09-05 10:39:03

Sencha Touc离线存储数据库

2011-07-25 16:41:16

Sencha Touc

2012-03-08 22:31:28

Sencha Touc

2011-09-05 11:23:26

EclipseSencha Touc框架
点赞
收藏

51CTO技术栈公众号