extjs

How to replace the default click event by a double click event for grid row selection in ExtJS

ぐ巨炮叔叔 提交于 2020-05-17 07:05:51
问题 In ExtJS 6.2.0. I have a standard grid. The grid's selection model, and all of it's related functions like the highlighting of grid rows, is by default triggered by the single click event. I would like to keep all of the selection model's functionality, but driven by a double click event instead. I was thinking along the line of killing the default single click event listener, and introducing a dedicated double click event listener. But I can't find any handle on this default event listener.

How to replace the default click event by a double click event for grid row selection in ExtJS

时间秒杀一切 提交于 2020-05-17 07:04:15
问题 In ExtJS 6.2.0. I have a standard grid. The grid's selection model, and all of it's related functions like the highlighting of grid rows, is by default triggered by the single click event. I would like to keep all of the selection model's functionality, but driven by a double click event instead. I was thinking along the line of killing the default single click event listener, and introducing a dedicated double click event listener. But I can't find any handle on this default event listener.

Are Stores created in the initComponent function memory leaks once the component is destroyed or will these stores be garbage collected?

自古美人都是妖i 提交于 2020-05-15 08:08:49
问题 This is a question that surged from this other one: Best practice to have the same view and store multiple times in ExtJS 4 So in a scenario where stores are created in the initComponent function of a grid. Should I override onDestroy of the grid to also destroy the store ? Or these stores would be garbage collected because simply there are no references to them? 回答1: No, the store will still exist after destroying the Grid No, you will not need to override the destroy method of the grid You

Evaluating Javascript Arrays

南楼画角 提交于 2020-05-15 07:36:25
问题 I have an array that contains an array of arrays if that makes any sense. so for example: [[1, 2, 3], [2, 3, 4], [3, 4, 5], [4, 5, 6]] I want to see whether an array exists withing the array, so if [1, 2, 3] is duplicated at all. I have tried to use the .indexOf method but it does find the duplicate. I have also tried Extjs to loop through the array manually and to evaluate each inner array, this is how I did it: var arrayToSearch = [[1, 2, 3], [2, 3, 4], [3, 4, 5], [4, 5, 6]]; var newArray =

Evaluating Javascript Arrays

有些话、适合烂在心里 提交于 2020-05-15 07:36:07
问题 I have an array that contains an array of arrays if that makes any sense. so for example: [[1, 2, 3], [2, 3, 4], [3, 4, 5], [4, 5, 6]] I want to see whether an array exists withing the array, so if [1, 2, 3] is duplicated at all. I have tried to use the .indexOf method but it does find the duplicate. I have also tried Extjs to loop through the array manually and to evaluate each inner array, this is how I did it: var arrayToSearch = [[1, 2, 3], [2, 3, 4], [3, 4, 5], [4, 5, 6]]; var newArray =

ExtJs Application Cache warning

天大地大妈咪最大 提交于 2020-05-14 07:24:45
问题 I have a single page app written with ExtJs. I'm not using the application cache but when the app launches I see the following warning in Chrome: [Deprecation] Application Cache API use is deprecated and will be removed in M82, around April 2020. See https://www.chromestatus.com/features/6192449487634432 for more details. This question has been posted multiple times on the Sencha forums (here and here) going back several years. The only response has been from a non-Sencha poster saying it

Add progressbar inside Ext.window

人盡茶涼 提交于 2020-05-09 10:55:33
问题 Could anyone help me insert below progress bar inside Ext.window? or any other suggestions to add a progress bar inside Ext.window? var p = Ext.create('Ext.ProgressBar', { renderTo: Ext.body(), width: 300 }); p.wait({ interval: 500, //bar will move fast! duration: 50000, increment: 100, text: 'Updating', scope: this, fn: function () { p.updateText('Done!'); } }); I want to insert progress bar in below window var window = new Ext.Window({ title: "export", height: 100, layout: 'fit', buttons: [

前后端分离实际容易产生的问题

|▌冷眼眸甩不掉的悲伤 提交于 2020-05-07 11:52:05
前后端分离现在火了很多年,在实际中新技术的使用一般是先在一些大厂中采用,比如在招聘网上大厂的前端招聘node要求比较高,而在中小型厂中对node的要求只是会用webpack打包工具以及npm包管理就可以了。最近几年传统公司、中小型公司开始构建前后端分离模式,前后端分离的好处网上文章很多,简单说前端可以专注前端的开发,后端专注后端开发,开发效率和质量都会得到提升,但在实际项目组中因为很多leader资历比较老,思维方式还是传统的软件开发的思维,所以构建出来的团队只是前后端分离的形。我分享下我转前端以来待的3家公司前后端分离模式踩的坑,也自己整理总结下前后端分离模式中要提前做好的协调和准备。 正式转前端,第一次接触前后端分离 我之前是做.net,做的项目大部分是后台管理系统,那时候没有分前端后端,一般是一个功能从数据库到前端一起做,所以工作按时间分布一半时间敲C#代码一半时间写js,那时候后台管理对页面美观的要求不高考虑开发效率所以一般都是用extjs、jQuery easyUI以及后面出来的bootstrap把样式封装好了,只要用里面的组件拼接页面实现业务逻辑就可以了。但随着C#在市场的需求越来越少,开始感觉到危机,考虑要不要转行。那时候在开发群认识一个大佬招前端Vue,当时Vue刚出来没多少久,很难招到人只能改变招聘要求找原生js基础相对比较好的

cross origin problems with extjs 6.01

萝らか妹 提交于 2020-04-29 03:23:12
问题 I'm using a POST form to login on my backend which works without any problem. The backend accepts all locations (*) After I login, I'm ready to get some data and then I get Cross-Origin-request blocked: the Same Origin Policy doesn't allow thebackend.test/Statistics/.stat (Reason: CORS-header ‘Access-Control-Allow-Origin’ doens't corrspond with ‘*’). onLoginClick: function(buttons){ // this.onLoginSuccess(null,null); // return; var me = this; var loginForm = this.lookupReference('loginForm');

cross origin problems with extjs 6.01

為{幸葍}努か 提交于 2020-04-29 03:22:52
问题 I'm using a POST form to login on my backend which works without any problem. The backend accepts all locations (*) After I login, I'm ready to get some data and then I get Cross-Origin-request blocked: the Same Origin Policy doesn't allow thebackend.test/Statistics/.stat (Reason: CORS-header ‘Access-Control-Allow-Origin’ doens't corrspond with ‘*’). onLoginClick: function(buttons){ // this.onLoginSuccess(null,null); // return; var me = this; var loginForm = this.lookupReference('loginForm');