extjs5

Month field on EXTJS 5.1

拜拜、爱过 提交于 2019-11-29 14:14:03
I got this awesome fiddle https://fiddle.sencha.com/#fiddle/h5i from another stack overflow post (thanks igor). BUT I have one problem: the code doesn't work if I select extjs version 5.1, which is the version I use in my application. The problem is that when I click on a month or a year, the calendar just closes (you can try the behaviour by setting the version to 5.1 and running the fiddle again). I have tried to custom parts of the code, but nothing changed :s. Anyone has any ideas of why this doesn't work with extjs 5.1, or how could i workaround the problem ? Thanks in advance :) !

ExtJS5的grid filter改造

一笑奈何 提交于 2019-11-29 13:09:12
grid控件的检索是前端界面最常见的功能之一。 ExtJS5提供了官方的grid通用检索实现:http://dev.sencha.com/ext/5.1.0/examples/kitchensink/#grid-filtering 该实现用了几个子类分别支持不同的检索类型: 各种类型的效果如下: 数字型: 文本型包含检索: 枚举型检索: 日期型检索: 布尔型检索: 最值得称道的是:上述检索的应用,只需要在grid的config中声明引用该plugin,并在grid的column config中定义检索类型即可。 将这种检索形式给客户演示时,客户方认为这种检索形式比较隐蔽和零散,如果需要检索的列在最右边,需要滚动到最右再检索。 窃以为客户的话有道理,国人的使用习惯的确和老外常常背道而驰,于是决定实现一种如下的检索形式:将所有检索归并到工具栏的一个下拉菜单项。 鉴于ExtJS官方提供的上述分类检索实现合理而且强大,不想另起炉灶从头做起,我的解决思路是改写一个plugin 封装和引用ExtJS的具体检索实现: 代码如下: Ext.define('DCApp.view.GridFilters', { extend: 'Ext.plugin.Abstract', requires: [ 'Ext.grid.filters.filter.*' ], mixins: [ 'Ext.util

ExtJS 5.1: Binding record value to component property

老子叫甜甜 提交于 2019-11-28 12:55:39
问题 Let's say I've got a ViewController, ViewModel, and my View. In the View, I've got a form panel that gets a loaded record. When this record loads into the form, I want to hide or show a button based on the record's status field, so I figured do something with binding. However, it looks like binding is limited to only inverting, not actually using an expression. To get a better understanding, take a look at this code: Ext.application({ name : 'Fiddle', launch : function() { Ext.define('User',