Sencha touch
共 8 篇文章
touch 1.1 form 例子
Ext.setup({ icon: 'icon.png', tabletStartupScreen: 'tablet_startup.png', phoneStartupScreen: 'phone_startup.png', glossOnIcon: false, onReady: function() { var form; Ext.regModel('User', { //创建模型 fields: [ {name: 'name', type: 'string'}, {name: 'password', type: 'password'}, {name: 'email', type: '…
2011-04-01 15:03 · Sencha touch · PHP · EXT · UI · json · HTML5
Ext.Form.Select
xtype : 'selectfield', label : 'name', name : 'ext.name', id : 'work', options : [{text: 'test', value: '100'}] //动态修改列表内容方法 tempForm.setOptions({[json}]).setValue('third');
2011-03-21 10:32 · Sencha touch · EXT · json
sencha touche 上传图片
写了2天终于写出来 touche上传的解决办法了 下载jquery 上传插件 ajaxfileupload.js 并引入 下面是上传控件的写法 item[ { xtype: 'textfield', name: 'filename', id:'files', inputType : "file", label: '头像', placeHolder: '请输入图片网页路径URL', autoCapitalize : true, required: true, useClearIcon: true }] jquery ajax上传的方法 function ajaxuploadImg(name) …
2011-02-25 17:27 · Sencha touch · Ajax · json · jQuery
sencha touch 函数+事件
tab.setActiveItem(1); // tabPanel 切换页面 list.getSelectedRecords()[0].data.id //获取list选中项 data. 数据名
2011-02-24 16:32 · Sencha touch
sencha touche Ext.Carousel 用法
//这个控件是 可以用鼠标手势切换内容 var carousel = new Ext.Carousel({ fullscreen: false, //全屏 padding:60, // 距离 //ui: 'top', direction: 'vertical', //设置为水平 默认为垂直 defaults: { cls: 'card' //设定css 样式 }, items: temp //显示内容 });
2011-02-17 17:46 · Sencha touch · CSS · EXT · UI
Sencha touch Ext.Panel
var panel = new Ext.Panel({ fullscreen: true, //全屏 id: 'main_panel', scroll: 'vertical', layout: { type: 'vbox', align: 'stretch' }, defaults: { flex: 2 }, //activeItem: items: [getTabPanel()], dockedItems: [{ xtype: 'toolbar', dock: 'top', title: 'test' }, getNavigation().show()] }); 目前没什么可写的 以后补上
2011-02-17 17:39 · Sencha touch · Flex · EXT
Sencha touch Ext.ActionSheet 使用方法
//按钮组 var actionSheet = new Ext.ActionSheet({ draggable:true,//允许拖拽 bodyMargin:100//调整距离 还有 bodyPadding items: [ { text: 'Delete draft', ui : 'decline' //按钮类型 }, { text: 'Save draft' }, { text: 'Cancel', ui : 'confirm' //按钮类型 } ] }); actionSheet.show(); 事件: tap //点击事件 没有太深入研究 就知道这些信息
2011-02-17 17:33 · Sencha touch · EXT · UI
sencha touch :Ext.list 使用方法
var list = new Ext.List({ id: 'myList', floating: true,//设置此属性后才可以使用 height width width: 250, height: 200, fullscreed:true,//全屏显示 dock: 'left', //显示的位置 indexbar:true,//在list里 显示类似快速查找 modal:true,//list变为模态框 itemTpl: '{firstName}',//显示 store 里的数据 draggable:true,//允许触摸拖动 loadingText:'加载',//加载数据时显示的文字…
2011-02-17 17:27 · Sencha touch · Google · EXT