extjs

Passing values back to the 'View' from 'Controller' class

老子叫甜甜 提交于 2019-12-24 18:25:15
问题 In my VIew, i have added a button and when i click on it, the Controller class gets called. The value's in the View (textfield values) , will be sent over the URL from the web service. Then the server will return a JSON string shown below; {"value":"SUCCESS"} Now, i need to sent this JSON string back to the view, and the view will alert the user depending on the JSON response. If the JSON returned SUCCESS, then a Success alert will get displayed and if the JSON returned FAIL, then a Fail

Changing base color in sencha touch 2.2

流过昼夜 提交于 2019-12-24 18:23:22
问题 Recently i upgraded sencha framework to 2.2, facing problem with the scss. Not able to change the base color($base-color) of the app. follwing is the code i have in app.scss @import 'sencha-touch/default'; @import 'sencha-touch/default/all'; $base-color: #008c99; color change is not reflected any where in the app. Is this the proper way to set the base color of the app, if not please let me know where i fumbled. thanks in advance. 回答1: Okay, just place the "$base-color: #008c99" above the

ExtJS chained store filter not filtering

依然范特西╮ 提交于 2019-12-24 18:18:37
问题 Filter for combobox is not working and I am not sure why. I have two comboboxes, one is province and other is city . When I select a province, the city combobox will be filtered according to the selected province using the province_id. View Model Code: data: { selectedProvince: null }, stores: { province: { fields: [ 'province_id', 'province_name' ], proxy: { type: 'ajax', url: '*some url to province*', reader: { type: 'json', rootProperty: 'data' } } }, city: { fields: [ 'city_id', 'city

Extjs combo initial value after loadRecord before loading store

时光怂恿深爱的人放手 提交于 2019-12-24 17:55:49
问题 I have a problem with combobox initial value. I'm using form.loadRecord() and form.updateRecord() to load form values and insert them to grid. It works ok except for the combo values. I load store for combo on demand when it is clicked, so after the initial loadRecord() I get an int value with id. I have both smthid and smthname columns on grid. I tried to change the value beforerender but as suspected it gets propagated to grid. I need to somehow change the initial value of the combo without

Extjs combo initial value after loadRecord before loading store

好久不见. 提交于 2019-12-24 17:55:00
问题 I have a problem with combobox initial value. I'm using form.loadRecord() and form.updateRecord() to load form values and insert them to grid. It works ok except for the combo values. I load store for combo on demand when it is clicked, so after the initial loadRecord() I get an int value with id. I have both smthid and smthname columns on grid. I tried to change the value beforerender but as suspected it gets propagated to grid. I need to somehow change the initial value of the combo without

How to create a topology diagram using Javascript

僤鯓⒐⒋嵵緔 提交于 2019-12-24 17:46:04
问题 I need to create a topology (network) diagram, which will be integrated with my extJS application. Is anyone familiar with some Javascript packages with APIs for creating such a diagram, taking care of: positioning the nodes in the diagram, zooming, and dragging the nodes? In addition I want to use some custom icons for the nodes in the diagram. 回答1: You might look into yEd/yFiles (http://www.yworks.com/en/products_yed_about.html) It's java, not javascript, but it will definitely run as an

Extjs Tree and GRID content

孤人 提交于 2019-12-24 17:28:23
问题 I have a simple Extjs (5.1.1) Tree menu: var menu = new Ext.tree.Panel( { root: { text: 'My menu', expanded: true, listeners: { itemclick: function(s,r) { alert(r.data.text); } }, children: [{ text: 'System', expanded: true, children: [{ text: '', leaf: true }, { text: 'System Users', leaf: true }, { text: 'System Administrators', leaf: true }] }, { text: 'Settings', expanded: true, children: [{ text: 'Passwords', leaf: true }, { text: 'Emails', leaf: true }, ] }, { text: 'Logs', leaf: true,

How to add new property to JCR node through CQ.extjs?

五迷三道 提交于 2019-12-24 17:14:17
问题 I need to add a new property to a existing node in JCR:content from javascript(ExtJS). 回答1: Use HTTP POST method (via AJAX) and Sling POST servlet, like: CQ.HTTP.post('/content/path/to/my/page/jcr:content', null, { newProperty: '123' }); 来源: https://stackoverflow.com/questions/20398657/how-to-add-new-property-to-jcr-node-through-cq-extjs

How to use d3.js graphs in Ext.js?

℡╲_俬逩灬. 提交于 2019-12-24 16:57:47
问题 Can anyone point me to even the simplest example of how to embed d3.js graphics into ext.js? I've done a lot of searching: I'm not even sure it's possible. Or is it? Thanks in advance. 回答1: An overly simplified version of what I have used with OK results so far: Ext.define('desktop.controls.d3svg', { extend: 'Ext.container.Container', alias: 'widget.d3svg', listeners: { added: function() { this.onAdded(); } }, onAdded: function() { // ext container has the outer and inner containers // use id

ExtJs Window doesn't render

血红的双手。 提交于 2019-12-24 16:34:21
问题 Please tell me why my window doesn't render. Below is the javascript that i am using <link href="/Scripts/ext/resources/css/ext-all.css" rel="stylesheet" type="text/css"/> <script src="/Scripts/jquery/jquery-1.3.2.min.js" type="text/javascript"></script> <script src="/Scripts/ext/adapter/jquery/ext-jquery-adapter.js" type="text/javascript"></script> <script src="/Scripts/ext/ext-all.js" type="text/javascript"></script> <script type="text/javascript"> $(function() { var viewport = new Ext