sencha-touch

ActiveItemChange and Dataview.Dataview display

不羁岁月 提交于 2019-12-13 04:52:26
问题 Here is my SubView I am reworking my UI. At first my back button was a real button in my titlebar. The logic of this button worked perfectly and was MVCed. Now I have linked my tab to send the proper signal to the controller. The controller does receive and navigate threw my Tree structure correctly. The problem is that the Dataview.dataview in the Project Tab is not displaying properly after a tap on the back button. Here is my code onSubviewActiveItemChange: function(container, value,

Sencha touch2: How can i parse my nested json data?

拥有回忆 提交于 2019-12-13 04:29:49
问题 i could not able to parse my nested json data and i tried in many ways but i could not succeed. any help is appreciated. Here is my json output looks like: [ { "task": { "locator": "FGWESD", "subtask": [ { "work": { "number": "1145", "id": "0", "status": true, "gate": "N\/A", }, "sequenceNumber": "0", "id": "0" }, { "work": { "number": "1145", "id": "0", "status": true, "gate": "N\/A", }, "sequenceNumber": "0", "id": "0" } ], "connectTime": "0", "id": "0" } } ] Here is my model: Ext.define(

Sencha/Ext - How manipulate SVG Element included inside an svg file ?!

心已入冬 提交于 2019-12-13 04:25:41
问题 This is my problem.... 'mon' function works if i set html property directly with svg code like this: html: '<svg><text id="ID">Example</text></svg> I can manage elements by ID and set an event. But, if i recall an svg file by tag EMBED or iFRAME like this: html: '<embed src="abc.svg">' the elements included in svg file are hidden!! If i write for example alert(Ext.get("ID")) with 'ID' refers to an Html Element included in 'abc.svg' file, chrome debugger says: Uncaught TypeError: Cannot read

Cyrillic characters in MessageBox class of Sencha Touch

久未见 提交于 2019-12-13 02:15:50
问题 I am working with different languages with the Sencha Touch framework, and translating MessageBox buttons to different languages, I have added it and it is working but with the russian I am having problems, instead of appears the correct translation appears "???" doesn´t detect correctly the translation with special characters. Any clue? 回答1: Yes, I am working with UTF8 charset, but I have solved this issue receiving the labels from the backend here the code: var language = 'RU', //sent from

Search for CSS(Sencha Touch) tutorials

倾然丶 夕夏残阳落幕 提交于 2019-12-13 01:23:16
问题 I want to change the layout of my app. I want use my own buttons and change background color. Can someone post some useful tutorials. I'm not so good in css thanks for help 回答1: My only advice is for you to use Firebug if you want to customize you app. Set cls attributes to your components, launch the app on a Firefox/Chrome/Safari and then just right click on the HTML element you want to customize and take a look at the CSS set for the element. Then, it's all about CSS writing. 回答2: Either

Grid inside Tab

三世轮回 提交于 2019-12-13 01:02:59
问题 I'm trying to put a Grid (Ext.grid.GridPanel) object inside a Tab . This is the code: var grid = new Ext.grid.GridPanel({ store: new Ext.data.Store({ autoDestroy: true, reader: reader, data: xg.dummyData }), colModel: new Ext.grid.ColumnModel({ defaults: { width: 120, sortable: true }, columns: [ {id: 'company', header: 'Company', width: 200, sortable: true, dataIndex: 'company'}, {header: 'Price', renderer: Ext.util.Format.usMoney, dataIndex: 'price'}, {header: 'Change', dataIndex: 'change'}

Sencha Touch do not set scale and allow scrolling and resize on iPhone or iPad

怎甘沉沦 提交于 2019-12-13 00:45:55
问题 I am playing around with Sencha Touch, especially with examples like http://dev.sencha.com/deploy/touch/examples/ However I am faced with a problem, when using the component the scale is set on the iPhone and the user cannot scroll the page or zoom in or out. How may I disable these settings as I would like to have the carousel on a page which can be scrolled, and zoomed in/out. Thanks. 回答1: [Sencha person] You can't zoom in or out of a Sencha component. Having fixed UI Chrome is one of the

Empty platforms folder after cmd prompting [Phonegap] Attempting PhoneGap local run for android

本秂侑毒 提交于 2019-12-12 23:59:01
问题 I have designed some pages with sencha touch, my cmd version is 5.0.324 and the phonegap version that I'm using is 3.5.0-0.21.14 . The problem that I'm currently facing is after the cmd prompts: [Phonegap] Attempting PhoneGap local run for android Which only stay for a second. When I go to the platforms folder inside the phonegap folder I do not see any folder or file. I've installed android sdk manager. I've installed jre version 7, node version 0.10.29. I've also installed all other

What is the purpose of classnames in angle brackets in definitions?

耗尽温柔 提交于 2019-12-12 23:51:50
问题 In another question here on Stack Overflow (this one) I have seen this piece of code: Ext.define("App.view.leaders.MyViewName", { extend: 'App.view.basePopup', xtype: 'MyViewName', config: <Ext.form.IPanel>{ scrollable: 'vertical', items: [ { xtype: 'fieldset', title: 'Add New Auto Asset', instructions: '<hr class="separate" />', items: [ <Ext.field.ISelect>{ xtype: 'selectfield', label: 'Borrower Position', store: 'BorrowerPositionSelectorStore', }, <Ext.field.ISelect>{ xtype: 'selectfield',

How to update the Nested List/Tree Store in Sencha Touch?

女生的网名这么多〃 提交于 2019-12-12 17:18:47
问题 I have a nested list which must be filled with new data based on what does user select in an Ext.Carousel. TreeStore.load(newData) // this does not work :( TreeStore.removeAll() // this works! It seems that the docs and the forum don't have the answer, cause I have been searching for 2-3 days. Thank you in advance. 回答1: I've ended up with following solution: NestedList = Ext.extend(Ext.NestedList, { loadData: function(data) { this.store.setProxy({ type:'memory', data: data, reader: { type: