sencha-touch-2

store.sync() callback

醉酒当歌 提交于 2019-12-19 11:47:21
问题 Is there a callback for store.sync()? I am trying to do: store.sync(function(){ alert('1'); }); but it does not work. The store is a local store. 回答1: There is no 'callback' for sync(). In order to achieve this behaviour, you will need to listen to the store's write event. Check this solution. 回答2: You can try: store.sync({ callback: function (records, operation) { alert('1'); } }); 回答3: There is the way to listen success event store.on('write', function(){ alert('ready'); }); store.sync();

How to pass data among the screens in sencha touch2.0?

﹥>﹥吖頭↗ 提交于 2019-12-19 10:53:35
问题 I am working on sencha touch2.0 app and I want to send data from one screen to another. I know this question has already been asked here but I don't find it helpful so I am asking it here again. I have a checkbox listview in my app and what I want is that when I click on one or more checkboxes and go to next screen, I will get all the 'checked' list items here, means I want to send checked list items data from one screen to another. From my research on net I came to know, this can be done by

Sencha Architect 3 does not use app.css

自作多情 提交于 2019-12-19 09:17:32
问题 I am trying to add custom font icons to my sencha architect project, and remove unnecessary theme classes but it seems that Sencha Architect does not use the app.scss at all (located in the resources/sass folder of my project). The changes that I made are neither applied in architect nor when I start the app. app.scss $include-pictos-font: false; $include-default-icons: false; @import 'sencha-touch/default'; @import'sencha-touch/default/src/Class'; @include icon-font('CustomFont', inline-font

Warning saying `Id` exist and should be destroyed

爷,独闯天下 提交于 2019-12-18 17:57:21
问题 Most of the time i see the following Warning, when i click on the same button for more than once (when calling the same function twice or more) [WARN] [WARN][Ext.Component#constructor] Registering a component with a id (`name`) which has already been used. Please ensure the existing component has been destroyed (`Ext.Component#destroy()`. How should i destroy it as the Warning suggest ? or how should i fix this ? UPDATE function onPersonFound(imageData) { var image = Ext.create('Ext.Img', {

Loading data into List using store sencha touch 2

允我心安 提交于 2019-12-18 17:11:36
问题 I have created navigaton view using Sencha touch 2. Navigation view has list component which i want to load it using store and model. I created model and store as required. On running my app the list does not render any data. It also gives warning in conolse [Ext.dataview.List#applyStore] The specified Store cannot be found . I am not sure what this error means. Here is my mvc code, model: Ext.define('GS.model.BlogModel', { extend: 'Ext.data.Model', config: { fields: [ {name: 'title', type:

Trigger click event on link tag in JS for Android and iPhone

痴心易碎 提交于 2019-12-18 13:33:24
问题 I am developing mobile web application using Sencha Touch (JavaScript & ExtJS). I have a link tag (just <a> tag with href ), and I need to trigger click event on it. I have found that call of myelement.dom.click(); do the job, but it's not working for Android... Is there some kind of universal solution? UPDATE I have a container with html code: <a href="http://google.com" id="link_to_click" target="_blank">CLICK ME</a> I need to simulate click on this link using only plain JavaScript and

Which mobile development open source Framework should I use? [closed]

蹲街弑〆低调 提交于 2019-12-18 10:36:51
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 4 years ago . My company would like to develop a mobile application. Web app, native app or hybrid app ? They actually don't know. In that context, they asked me to make some researches (I'm not a mobile development expert) on open source Framework for mobile development (cross platform

GXT 3 mobile support

心已入冬 提交于 2019-12-18 07:24:21
问题 Support GXT 3 responsitive design out of the box or is there another way to get a good mobile application with GXT running. I know about Sencha Touch but I don't want to develop two standalone apps.. Regards, Markus 回答1: 2015-01-22 update without mentioning a date, but looks promising: sencha.com: Taking a Look at Sencha GXT and GWT it seems in summer 2014 (around now :-)) we should get this natively with GXT 4.0 from Sencha: http://www.sencha.com/blog/gxt-roadmap-update/ full tablet support

Sencha Touch 2 - Android Performance

风格不统一 提交于 2019-12-18 04:59:08
问题 We are developing a Sencha Touch 2 application which makes use of Phonegap to be able to install it as an application and access the storage of a device. This works really well on the iPad 2 and the iPad 3. However when we tried to run the application on an android device, the performance was very slow. The main elements which slowed down the system were lists and carousels. When we tried to test the same application through the chrome browser, the performance was on-par with that of the iPad

load an html file into a panel

孤街浪徒 提交于 2019-12-17 22:38:02
问题 I am new to sencha touch 2.0. I have an html file. I am trying to load this html file(or content) into a panel. I am simply using an ajax call but its not working. Following is the code. This is the html file i am running in the browser. index.html : <script type="text/javascript" src="touch/sencha-touch-debug.js"></script> <script type="text/javascript" src="HTMLPanel.js"></script> <script type="text/javascript" src="app.js"></script> this is app.js : Ext.setup({ name : 'SampleLoad',