sencha-touch-2

How to push Ext.Panel when row selected on Ext.List in Sencha Touch 2.0?

狂风中的少年 提交于 2019-12-12 03:08:25
问题 Given a simple Ext.List like the one in the Sencha docs, how can I make a new Panel or Carousel get "pushed" onto the screen when I click on one of the names? http://docs.sencha.com/touch/2-0/#!/guide/list I'd like to be able to have a button to navigate back to the main screen too. 回答1: You can achieve this using Ext.navigation.View. Here is a very simple application demonstrating this: Ext.setup({ // onReady is when we can start building our application onReady: function() { // Create the

sencha touch How to make navigation like Touch-Theming example by sencha touch

夙愿已清 提交于 2019-12-12 02:54:07
问题 I am creating an app in which I have to create the popup like sencha touch theming expample to select the navigation items. I tried to see its code on github for a hint but don't know what I am missing hare is my code for header bar and the list button. Ext.define('ov_app.view.HeaderBar', { xtype : 'HeaderBar', extend:'Ext.Toolbar', config: { // xtype : 'toolbar', ui: 'plain', docked: 'top', cls: 'menuBar', border:0, defaults:{ border: 0, }, items: [ { iconCls: 'list', iconMask: true, ui:

Grid view data format in Sencha touch

*爱你&永不变心* 提交于 2019-12-12 02:53:58
问题 I want to display some data in gridview format in sencha touch but i'm not able to find any control or any other way to achieve this. I want my gridview should look like : Thanks in advance. 回答1: OMG, you're right, there's no grid component delivered with touch. You'll have to use this user extension: https://github.com/mitchellsimoens/Ext.ux.touch.grid. Mitchell Simoens works at Sencha, so I think you don't have to worry about the quality of this component. 来源: https://stackoverflow.com

JSONP request issue with Sencha Touch 2.1.1

僤鯓⒐⒋嵵緔 提交于 2019-12-12 02:44:12
问题 According to Sencha Touch 2.1 documentation, you make a json request with the following method Ext.data.JsonP.request(). When I use it I get: "Uncaught TypeError: Cannot call method 'request' of undefined". I get the same error whith Ext.util.JSONP.request(). How to make a jsonp request with Sencha Touch 2.1.1 ? 回答1: I guess you have not imported required classes. To work with Ext.data.JsonP.request , you need to add a require like requires:['Ext.data.proxy.JsonP'] in corresponding class. I

When loading a store in Sencha Touch 2, how can I stop the additional OPTIONS http request?

断了今生、忘了曾经 提交于 2019-12-12 02:19:21
问题 I'm writing an application in Sencha Touch 2, and as part of it I have a number of stores that use ajax proxy and json reader to load automatically from my external web service. The service is hosted on a different domain than the client, so I had to set Access-Control-Allow-Origin on the server to make this work. Everything works swimmingly with this setup, but I was using Fiddler to look at request performance and I noticed that every call of my webservice actually goes out twice. Once as

How to define dynamically the title in a NavigationView on Sencha Touch?

余生长醉 提交于 2019-12-12 01:48:16
问题 I'm using the component of SenchaTouch NavigationView. The problem I have is I can not define the title of my view dynamically. This is the code I'm using onMyList: function(dataview, index, target, record, e, options) { var myScreen = this.getMyScreen(); var model = Ext.getStore('Example').getAt(index); dataview.up('navSample').config.title = model.data.Nombre; dataview.up('navSample').push(myScreen); }, 回答1: First you have to upgrade Sencha Touch to at least 2.0.1. than you could use: var

Ext.getCmp not working on hide of Youtube Video Sencha Touch

淺唱寂寞╮ 提交于 2019-12-12 01:42:13
问题 I'm having difficulty setting the HTML of an element (a panel) on the hide event to remove an iFrame Youtube video in Sencha Touch 2. The hide event is working and is being called as I have a Ext.Msg.alert in the hide function that is being called and it works, but I can't stop the video on hide. Here is my panel code: Ext.define('TCApp.view.MyPanel0', { extend: 'Ext.Panel', alias: 'widget.mypanel0', config: { hideOnMaskTap: true, scrollable: false, items: [ { xtype: 'panel', html: '<iframe

Assigning Base 64 converted image from JSON

微笑、不失礼 提交于 2019-12-12 01:28:32
问题 Here the code which i have used to show the details from JSON , All detailsshowing properly except image.When i try to show the image its not showing in the image. JSON METHOD Ext.Ajax.request({ url: App.gvars.apiurl + 'ShowItemsByItemID/userID='+App.gvars.userid+'/itemID='+itemID, // url : this.getUrl(), method: "GET", useDefaultXhrHeader: false, withCredentials: true, success: function (response) { var respObj = Ext.JSON.decode(response.responseText); Ext.getCmp('myitemname').setValue

module cordova/plugin/ios/nativecomm not found - PhoneGap 2.1 / Sencha 2.0

我们两清 提交于 2019-12-12 00:34:35
问题 I have an existing iPhone project implemented with PhoneGap 2.1 and Sencha Touch 2.0. The app has run perfectly historically but I've run into some issues when picking it up again. First, I had problem with the CordovaLib.xcodeproj, which was just colored red in the project explorer. I solved that by adding the CordovaLib folder from the Phonegap-2.1 folder to the project, according to this blog post. Now I can build and run the app, but it freezes on the splash screen. There is the "Multi

AdMob BANNER is overlapping the bottom of the app view - Android

依然范特西╮ 提交于 2019-12-11 22:39:12
问题 I have successfully integrated the AdMob via https://github.com/aliokan/cordova-plugin-admob in my Sencha Touch application and it is showing also in Android device. But at bottom it is overlapping with the app. And some portion of app is pushed on upper side means it is not visible. But on orientation change everything is rendering just perfect. What should i do so that without changing the orientation it renders correctly. Any suggestion will be highly appreciated. EDIT: Here is my view