extjs

How to “exclude” a blank space from RegExp grouping?

两盒软妹~` 提交于 2019-12-12 07:05:57
问题 Context I am a front-end developer working on ExtJS framework, and for purpose of speed, I created a lot of Sublime Text 3's Snippets to agilize the work. The models of a task, comes from the back-end at C# platform, containing the type of var and the name of it. Then I got an idea to simply copy the model content and with its string produce a new string that equates to ExtJS model pattern. Inside the Snippet code, I am not using any programming language (because its not possible), I am only

How to search an specific button in a grid using webdriverIO

柔情痞子 提交于 2019-12-12 06:59:10
问题 I'm using an ExtJS grid panel. This grid has more than 20 rows of info and I want to search in each row for an icon that represents active mode , using WebdriverIO as a test driver. How can I search in each row till the test driver finds the first active icon? ( Note: the grid I'm testing is hosted on alegra.com ). Consider the following HTML print-screen: 回答1: It's hard to know exactly how to do it without knowing which locator you are using but if you first get a list of the rows and then

ExtJs XTemplate is not working with IE when it contains functions

流过昼夜 提交于 2019-12-12 06:57:30
问题 I am using ExtJs (4.2) I am facing an Issue that my XTemplate is not working with IE when it contains functions. Anyone can help. 回答1: I was not getting more help on this topic then I dig into it and found that apply function is not working perfectly for IE. xTemplate = new Ext.XTemplate(me.getTemplate(), { getCompanyDescriptionHTML: me.getCompanyDescriptionHTML }); xTemplate.apply(data)); What apply method do, it compiles the template and bind data in. I further investigated it and found

ExtJS models association

冷暖自知 提交于 2019-12-12 06:45:30
问题 Hi StackOverflow users! I've got some json data, which should be loaded into a model with three assoctiations. Two of them are okey, but third one would not work. Here's a json reply from server: http://pastebin.com/geL16BvL Main Model: Ext.define('Invoice', { extend: 'Ext.data.Model', fields: [ {name: 'id', type: 'int'}, {name: 'invoice_id', type: 'string'}, {name: 'invoice_date', type: 'date', dateFormat: 'time'}, {name: 'invoice_due_date', type: 'date', dateFormat: 'time'}, {name: 'invoice

ExtJS Grid SelectionChange is fired in other controller

最后都变了- 提交于 2019-12-12 06:26:33
问题 I have a main application with a left navigation menu. My Main.js controller handles the treepanelselect event where a Tab is added: onTreepanelSelect: function (selModel, record, index, options) { var mainPanel = Ext.ComponentQuery.query('mainpanel')[0]; var newTab = mainPanel.items.findBy( function (tab) { return tab.title === record.raw.text; }); if (!newTab) { newTab = mainPanel.add({ xtype: record.raw.class_name, // this is my View widget name closable: true, iconCls: "key", title:

change the html from controller in extjs

孤人 提交于 2019-12-12 06:25:59
问题 In my Extjs 4.1.1a project, Fiddle ( this fiddle is not working, it is just for reference ) I am changing the HTML(In controller) value using Ext.apply(weekNotifications,{html: {"hello"}); But the page(view) is not updating. When I checked the variable weekNotifications in Chrome console, after the above function, the innerHTML is "hello" as I added but in weekNotifications.el.dom.innerHTML is "Notifications here" (old text). I even tried: weekNotifications.update("Hello"); //same problem as

ExtJS: settings properties via a function on the Prototype: is it a safe pattern?

流过昼夜 提交于 2019-12-12 06:03:37
问题 I am working on a large ExtJS codebase written around ExtJS3 which has a lot of the following initComponent() pattern: Ext.define('PVE.form.BackupModeSelector', { extend: 'PVE.form.KVComboBox', alias: ['widget.pveBackupModeSelector'], initComponent: function() { var me = this; me.comboItems = [ ['snapshot', gettext('Snapshot')], ['suspend', gettext('Suspend')], ['stop', gettext('Stop')] ]; me.callParent(); } now I have started to set this properties directly on the prototype doing things like

Chained combobox shows valuefield instead of displayfield when changing parent cb

≯℡__Kan透↙ 提交于 2019-12-12 05:41:56
问题 How to reset chained combobox in my example the extjs way? Consider this two comboboxes: { xtype: 'combo', bind:{ store: '{contacts}' }, reference: 'contactsCombo', displayField: 'name', name: 'contact', typeAhead: false, editable: false, fieldLabel: 'Contact', emptyText: 'Select a contact...', anchor: '95%', listeners: { change: 'onSelectChange' }, }, { xtype: 'combo', name: 'phone', reference: 'phonesCombo', fieldLabel: 'Phone', displayField: 'number', valueField:'id', hiddenName: 'id',

How to mouse hover then need to click on the tab- Selenium WebDriver

橙三吉。 提交于 2019-12-12 05:39:45
问题 Working on selenium webdriver First i want the mouse need to hover to tab which is shown in image. from Age to Time to Resolve . Using Java . if(existsElement("ext-pr-backlog-evolution")==true){ WebElement menuHoverLink = driver.findElement(By.id("ext-pr-backlog-evolution"));// Problem in this line actions.moveToElement(menuHoverLink).perform();// JavascriptExecutor executor = (JavascriptExecutor)driver;// This is exactly opening the page executor.executeScript("arguments[0].click();", driver

ExtJS - Adding headers to AJAX store

一笑奈何 提交于 2019-12-12 05:38:48
问题 Despite that I have configured the headers configuration of my store, getting an error like this: No 'Access-Control-Allow-Origin' header is present on the requested resource . Here is my proxy configuration of Ext.data.Store : proxy : { type : 'ajax', headers : { 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': 'POST, GET, OPTIONS, DELETE, PUT', 'Access-Control-Max-Age': '1000', 'Access-Control-Allow-Headers': 'x-requested-with, Content-Type, origin, authorization, accept,