03 2014 档案
摘要:扩展代码: 1 /* 2 *扩展carousel 3 *通过data,tpl,store配置数据 4 */ 5 Ext.define('ux.CardList', { 6 extend: 'Ext.carousel.Carousel', 7 xtype: 'cardList', 8 config: { 9 //单个项配置10 itemConfig: {},11 //数据展示模版12 tpl: null,13 //数据源14 store: null,15 //数...
阅读全文
摘要:选择记忆功能参考:https://market.sencha.com/extensions/ext-plugin-rememberselection插件代码:/** 记住列表选择状态* 如果分组,支持点击全选按钮全选分组* 需要添加以下css.select .x-list-header:before { content:"全选"; right:0; position:absolute; width:3em; text-align:center;}*/Ext.define('ux.plugin.Remember', { extend: 'Ext.Com
阅读全文
摘要:奇怪的现象,路由器子网掩码设置成255.0.0.0会导致电脑访问不到https://github.com/改成默认的255.255.255.0就正常了。
阅读全文
摘要:js代码如下: 1 /* 2 *高度自动增长的文本框 3 */ 4 Ext.define('ux.TextArea', { 5 extend: 'Ext.field.TextArea', 6 xtype: 'autoTextArea', 7 config: { 8 clearIcon: false, 9 //不配置maxRows和lineHeight则没有增长限制10 maxRows: 3,11 lineHeight: 2912 },13 initialize: function () {1...
阅读全文
摘要:有些时候我们需要实现这种效果上边是一张图片或者一个跑马灯控件,这个布局实现起来比较容易但是如何让他们共用一个滚动条,来实现以下效果就比较麻烦了。在官方论坛查找资料得知,可以用以下写法实现:/**动态*/Ext.define('app.view.new.Trend', { alternateClassName: 'newTrend', extend: 'Ext.List', requires: ['Ext.carousel.Carousel', 'Ext.plugin.PullRefresh', 'Ext.p
阅读全文