
sencha-touch
一个热爱bug的程序猿
这个作者很懒,什么都没留下…
展开
-
sencha-touch学习
以后每天翻译一篇sencha-touch api文档,在学习sencha-touch的同时锻炼下自己的英语能力,好长时间没学习英语了,不能扔了!原创 2013-07-30 22:44:25 · 884 阅读 · 0 评论 -
第九天(How to Use Classes in Sencha Touch)
原文地址:http://docs.sencha.com/touch/2.2.0/#!/guide/class_system原创 2013-08-12 13:37:33 · 1338 阅读 · 0 评论 -
第十天(Using Stores)
原文地址:http://docs.sencha.com/touch/2.2.0/#!/guide/stores Using Stores 使用数据存储Models are typically used with a Store, which is basically a collection of model instances. Setting up a store and lo原创 2013-08-12 23:41:39 · 689 阅读 · 0 评论 -
第十二天(Understanding and Using Events in Sencha Touch)
原文地址:http://docs-origin.sencha.com/touch/2.2.1/#!/guide/eventsUnderstanding and Using Events in Sencha TouchContentsWhat Are Events?Listening to EventsConfig-driven EventsAdding Li原创 2013-08-15 11:07:56 · 1430 阅读 · 0 评论 -
st中元素访问
Ext.get:根据组件id来获取元素,返回的是dom节点而并非是组件!Ext.ComponentManager.get:根据组件id来获取组件,返回的是组件而非dom元素!Ext.fly:该方法为节点元素开辟一块内存,下一次使用该方法的元素将占据相同地址的内存,覆盖前一次使用该方法的节点元素。因为这些节点元素公用一块内存,因此可以提高一部分应用程序在使用时的性能。原创 2013-09-06 11:01:08 · 1175 阅读 · 0 评论 -
第十一天(Using Views in Your Applications)
原文地址:http://docs-origin.sencha.com/touch/2.2.0/#!/guide/viewsUsing Views in Your Applications在你的应用中使用视图ContentsUsing Existing ComponentsA Real World ExampleCustom Configurations原创 2013-08-13 23:58:21 · 937 阅读 · 0 评论 -
sencha touch 自定义cardpanel控件 模仿改进NavigationView 灵活添加按钮组,导航栏,自由隐藏返回按钮
代码:/**模仿且改进NavigationView*返回时自动销毁视图,节约内存*/Ext.define('ux.CardPanel', { extend: 'Ext.Container', xtype: 'cardPanel', requires: ['Ext.TitleBar'], config: { //布局,type不可更改转载 2013-09-05 11:18:05 · 1692 阅读 · 0 评论 -
sencha touch 我的公用类myUtil
/*公共类*/Ext.define('myUtil', { statics: { //store公用加载方法 storeLoadById: function (id) { var store = Ext.getStore(id); this.storeLoad(store); },转载 2013-09-05 11:21:10 · 1593 阅读 · 0 评论 -
Sencha touch常见错误集锦
1、TypeError: alignToElement.getPageBox is not a function alignToBox = alignToElement.getPageBox(),使用tooltip,如: var newButton = { id : 'new_Button', xtype : 'but原创 2013-08-15 17:07:55 · 4721 阅读 · 2 评论 -
st build后自动将项目deploy到android project的asset/www目录的方法
最开始想直接修改build输出目录的路径,但是因为st build的时候会根据命令的不同类型(package、production、testing、native)将生成的文件置于不同的目录下,当然默认都是在build/app_name目录下,该目录下又以testing、package、production进行区分,故无法直接修改build输出路劲来达到目的,只能是在构建完后,将生成的目录copy到原创 2013-11-27 15:24:10 · 1651 阅读 · 3 评论 -
第十六天(Theming Sencha Touch)
原文地址:http://docs-origin.sencha.com/touch/2.2.0/#!/guide/themingTheming Sencha TouchContentsPlatformsThemesplatformConfigBase ThemeUpgrading Themes From Sencha Touch 2.1 to 2.2Lis原创 2013-08-21 23:25:42 · 2343 阅读 · 0 评论 -
第八天(Using Models)
原文地址:http://docs-origin.sencha.com/touch/2.2.0/#!/guide/modelsUsing Models使用模型ContentsUsing ProxiesAssociationsValidationsAt its simplest, a Model is only a set of fields原创 2013-08-08 23:57:09 · 985 阅读 · 0 评论 -
第十五天(Using AJAX with Sencha Touch)
原文地址:原创 2013-08-21 14:49:10 · 2065 阅读 · 0 评论 -
第二天(Using Components in Sencha Touch)
原文地址:http://docs.sencha.com/touch/2.2.0/#!/guide/componentsUsing Components in Sencha Touch使用st中的组件ContentsWhat is a Component?What is a Container?Instantiating ComponentsConfigu原创 2013-08-01 11:15:30 · 1556 阅读 · 0 评论 -
第四天(Using Layouts in Sencha Touch)
原文链接:http://docs.sencha.com/touch/2.2.0/#!/guide/layoutsUsing Layouts in Sencha TouchContentsIntro and HBoxVBox LayoutCard LayoutFit LayoutDockingPack and Align (HBox)Pack and Alig原创 2013-08-04 18:32:36 · 1095 阅读 · 0 评论 -
第一天(Getting Started with Sencha Touch)
原文地址:http://docs.sencha.com/touch/2.2.0/#!/guide/getting_started什么是sencha touch?sencha touch 能够让你快速、容易的构建以html5为基础运行于手机设备上的app应用,并且使运行于浏览器或者混合型脚本中的app具有原生app相似的用户体验。它支持安卓、ios、windows pho原创 2013-07-30 23:48:27 · 1737 阅读 · 4 评论 -
第五天(Using the Data Package in Sencha Touch)
Using the Data Package in Sencha Touch使用st中的数据包The data package is responsible for loading and saving all data in a Sencha Touch app. Most of the actions involving the data package are related t原创 2013-08-05 23:40:55 · 966 阅读 · 0 评论 -
第十三天(Floating Components)
原文地址:http://docs-origin.sencha.com/touch/2.2.1/#!/guide/floating_componentsFloating ComponentsContentsCentering a ComponentAbsolutely Positioning a ComponentModal Components原创 2013-08-19 10:59:20 · 1012 阅读 · 0 评论 -
第六天(Controllers)
原文地址:http://docs.sencha.com/touch/2.2.0/#!/guide/controllersControllers控制器ContentsRelation to Ext.app.ApplicationLaunchingRefs and ControlRoutesBefore FiltersProfile-Specific Contr原创 2013-08-06 23:42:49 · 1132 阅读 · 0 评论 -
第十四天(Environment Detection)
原文地址:http://docs-origin.sencha.com/touch/2.2.1/#!/guide/environment_package Environment Detection环境检测Contents 目录Operating System 操作系统Browser 浏览器Features 特性Commonly when buil原创 2013-08-19 23:43:58 · 929 阅读 · 0 评论 -
第七天(Using Device Profiles)
原文地址:http://docs.sencha.com/touch/2.2.0/#!/guide/profilesUsing Device Profiles使用设备配置ContentsSetting Up ProfilesDetermining the Active ProfileThe Launch ProcessSpecializing ViewsS原创 2013-08-08 00:10:52 · 978 阅读 · 0 评论 -
第三天(Intro to Applications with Sencha Touch)
原文地址:http://docs.sencha.com/touch/2.2.0/#!/guide/apps_introIntro to Applications with Sencha Touchst应用程序简介ContentsAnatomy of an AppControllersStoresDevice ProfilesLaunch Proces原创 2013-08-02 15:30:20 · 1520 阅读 · 0 评论 -
sencha touch的list组件item不能点击了
今天在做一个列表的功能,列表的每一项均可以点击,先试了一下最简单的,单击子项时弹出一个提示,郁闷的是连这个最简单的都出不来,不是因为listener写的不对,因为在点击item项时,该项很明显的没有任何反应,就跟点了页面上的空白位置样,连颜色都没有改变下,实际上,list的item在点击时会有颜色的变化!百思不得其解,打开另一个类似的页面一行行比照,一直以为是config哪里配置的错误导致的,原创 2013-12-09 11:06:02 · 1349 阅读 · 0 评论