上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: 最新版本我将会放在:http://www.cnblogs.com/mlzs/p/3382229.html这里的示例里面,这里不会再做更新代码: 1 /* 2 *模仿且改进NavigationView 3 *返回时自动销毁视图,节约内存 4 */ 5 Ext.define('ux.CardP... 阅读全文
posted @ 2013-09-06 20:03 魔狼再世 阅读(1780) 评论(0) 推荐(0)
摘要: 1 /*公共类*/ 2 Ext.define('myUtil', { 3 statics: { 4 //store公用加载方法 5 storeLoadById: function (id) { 6 var store = ... 阅读全文
posted @ 2013-09-05 10:32 魔狼再世 阅读(1290) 评论(0) 推荐(0)
摘要: 将http://www.cnblogs.com/mlzs/p/3279162.html中的功能插件化插件代码: 1 /* 2 *tpl模版加入按钮 3 * 4 *fire="tasteUp" 表示添加tasteUp事件和激活dotasteUp方法 5 *有两个参数cmp:视图本身以及doit 6 *... 阅读全文
posted @ 2013-09-02 13:00 魔狼再世 阅读(1544) 评论(0) 推荐(0)
摘要: js如下: 1 Ext.define('app.view.message.Info', { 2 alternateClassName: 'messageInfo', 3 extend: 'Ext.Container', 4 xtype: 'messageInfo', 5 config: { 6 cls: 'info', 7 scrollable: { 8 direction: 'vertical', 9 directionLock: true,10 indic... 阅读全文
posted @ 2013-09-01 16:04 魔狼再世 阅读(1884) 评论(0) 推荐(1)
摘要: 扩展代码: 1 /* 2 *分享到微博 3 */ 4 Ext.define('ux.WeiboPicker', { 5 extend: 'Ext.Picker', 6 xtype: 'weiboPicker', 7 config: { 8 toolbar: { 9 ui: 'light',10 title: '分享到'11 },12 value: {13 weibo: 'sinaminiblog'14 },15 slot... 阅读全文
posted @ 2013-09-01 15:50 魔狼再世 阅读(951) 评论(0) 推荐(0)
摘要: 如图,当滚动条显示时不是那么的好看可以通过以下几种方式来隐藏滚动条,而又不影响滚动效果1.通过css隐藏1 /* 隐藏x方向滚动条 */2 .x-scroll-bar-x.active {3 width: 0px; 4 }5 /* 隐藏y方向滚动条 */6 .x-scroll-bar-y.active {7 width: 0px; 8 }2.通过配置滚动条属性实现隐藏1 scrollable: {2 //注意横向竖向模式的配置,不能配错3 direction: 'vertical',4 //隐藏滚动条样式5... 阅读全文
posted @ 2013-08-09 15:15 魔狼再世 阅读(913) 评论(0) 推荐(0)
摘要: Carousel插件代码: 1 /* 2 * TabPanel的Carousel功能插件 3 * 取至 4 * https://github.com/VinylFox/Ext.ux.touch.SwipeTabs 5 */ 6 Ext.define('ux.plugin.SwipeTabs', { ... 阅读全文
posted @ 2013-08-04 14:50 魔狼再世 阅读(2078) 评论(0) 推荐(1)
摘要: 扩展js代码 1 /* 2 *list多选扩展 3 */ 4 Ext.define('ux.SimpleList', { 5 alternateClassName: 'simpleList', 6 extend: 'Ext.List', 7 xtype: 'simpleList', 8 config: { 9 editCls: 'simpleList', 10 //不加在长按时可能没反应 11 onItemDisclosure: false, 12 //是否在多选状态(不可更改) ... 阅读全文
posted @ 2013-07-18 15:19 魔狼再世 阅读(2740) 评论(9) 推荐(2)
摘要: 测试代码如下 1 Ext.define('app.view.new.List', { 2 alternateClassName: 'newList', 3 extend: 'app.view.util.MyList', 4 requires: ['app.view.new.Info'], 5 xtype: 'newList', 6 config: { 7 store: 'newList', 8 listeners: { 9 itemtaphold: function(list) {10 ... 阅读全文
posted @ 2013-07-17 10:51 魔狼再世 阅读(2254) 评论(2) 推荐(1)
摘要: 可以设置一个一直都显示的二级菜单,修复了没有二级菜单时鼠标移上去仍然显示上一个二级菜单的问题.支持一级菜单鼠标离开事件html代码 1 2 3 4 5 我的网站 6 7 8 9 10 11 12 13 14 15 16 17 18 主 页19 金融资讯20 ... 阅读全文
posted @ 2013-07-10 10:33 魔狼再世 阅读(1250) 评论(2) 推荐(1)
摘要: 先从model讲起代码如下: 1 //求职 2 Ext.define('app.model.Staff', { 3 extend: 'Ext.data.Model', 4 config: { 5 fields: [{ 6 name: 'id', 7 type: 'int' 8 }, 9 { 10 //用户id 11 name: 'uid', 12 type: 'int' 13 }... 阅读全文
posted @ 2013-07-03 17:15 魔狼再世 阅读(2743) 评论(3) 推荐(1)
摘要: 如图中效果,代码很简单。就是利用st的loadmask来实现,可以看看api实现其他效果.1 /*添加消息提示组件*/2 masked: {3 xtype: 'loadmask',4 cls: 'message',5 transparent: true,6 indicator: false7 }css: 1 .message .x-mask-inner { 2 background-color:Black; 3 font-size:0.... 阅读全文
posted @ 2013-06-26 16:42 魔狼再世 阅读(1406) 评论(5) 推荐(1)
摘要: 在st2.1之中,在NavigationView视图之中在嵌套一个TabPanel会有以下问题下面我们监控TabPanel的activate事件和activeitemchange事件会发现当首页加载时会触发activate事件,进入到TabPanel后不会触发以上两个事件。但是点返回并且销毁TabPanel时会触发activeitemchange事件。activeitemchange(this, value, oldValue, eOpts)并且会发现value值为空所以在这种情况下需要通过代码来过滤,以便达到我们想要的效果1 activeitemchange:... 阅读全文
posted @ 2013-06-25 09:09 魔狼再世 阅读(1139) 评论(0) 推荐(0)
摘要: 首先你得安装一个adt-eclipse参考资料http://www.crifan.com/android_eclipse_offline_install_adt/然后就可以运行adt-eclipse来进行打包1.新建Android一个项目打开Eclipse,单击菜单栏的“File”->把鼠标光标移动到“New”->在弹出的列表框中,如果直接能看到“Android Applicaion Project”选项项,则直接单击此选项,否则选择最下面的“Other...”,在弹出的窗口中,展开“Android”项,选择“Android Applicaion Project”,然后“Next” 阅读全文
posted @ 2013-06-23 15:27 魔狼再世 阅读(2817) 评论(0) 推荐(2)
摘要: 1 Ext.define('app.view.about.About', { 2 alternateClassName: 'about', 3 extend: 'Ext.Container', 4 xtype: 'about', 5 config: { 6 cls: 'info', 7 scrollable: { 8 direction: 'vertical', 9 directionLock: true10 },11 url: 'http://ww... 阅读全文
posted @ 2013-06-18 16:24 魔狼再世 阅读(1656) 评论(2) 推荐(0)
摘要: https://market.sencha.com/extensionshttp://try.sencha.com/touch/2.1.0/http://www.mitchellsimoens.com/Sencha-Projects/demos/侧滑菜单https://github.com/wnielson/sencha-SlideNavigation点击按钮出现边栏菜单http://innofied.com/simplest-slide-navigation-with-sencha-touch-2-2/这里有很多扩展1.slidetoremove-pluginlist侧滑删除效果。(未使用, 阅读全文
posted @ 2013-06-18 15:49 魔狼再世 阅读(885) 评论(0) 推荐(0)
摘要: 1 /* 2 *自定义列表页面 3 */ 4 Ext.define('app.view.util.MyList', { 5 alternateClassName: 'myList', 6 extend: 'Ext.List', 7 xtype: 'myList', 8 requires: ['Ext.plugin.ListPaging', 'Ext.plugin.PullRefresh'], 9 config: {10 cls: 'list',11 plugins: [{12 xcl 阅读全文
posted @ 2013-06-18 11:51 魔狼再世 阅读(2033) 评论(0) 推荐(0)
摘要: 在使用工具压缩css和jss时,我遇到了以下问题1.1 showBtn: {2 tap: function (t, value) {3 this.redirectTo(t.config.goto);4 }5 }对于自定义属性,这样写是错的。需要这样,因为压缩检查比较严格正确写法如下:1 showBtn: {2 tap: function (t, value) {3 ... 阅读全文
posted @ 2013-06-17 11:41 魔狼再世 阅读(607) 评论(0) 推荐(0)
摘要: 在sencha touch2.1中如果采用card布局,show与hide事件的触发和我想象的不一样。假设有home,list,info三个界面,监控list的show,hide事件视图展示顺序为home-》list-》info切父容器为NavigationView从home进入到list,会先触发hide事件,然后再触发show事件。我的预想是只执行show事件,与预想不符,但是可以理解,防止显示的时候出错。从list返回到home,会先触发hide事件,然后再触发show事件。我的预想是只执行hide事件,与预想不符hide事件会优先触发,不是很明白为什么会这样。不过这让我明白在show或 阅读全文
posted @ 2013-06-13 15:56 魔狼再世 阅读(1287) 评论(0) 推荐(0)
摘要: 直接代码,搬运... 1 package com.example.jy110; 2 3 import org.apache.cordova.DroidGap; 4 5 import android.annotation.TargetApi; 6 import android.os.Bundle; 7 8 9 public class Jy110Activity extends DroidGap {10 private int retryCount = 0;11 @Override12 public void onCreate(Bundle savedInstan... 阅读全文
posted @ 2013-06-11 09:08 魔狼再世 阅读(1718) 评论(1) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 下一页