sencha-touch

Button background color in sencha

时光毁灭记忆、已成空白 提交于 2019-12-05 14:10:45
I am new to sencha touch. How do we change the background color of a button to white? I have a button with two images in each corner. I want the button to be plain white. I tried using css like this: .quest { background: url(../images/quest.jpg) no-repeat left, url(../images/rightarrow.jpg) no-repeat right; background-color: white; border: none; border-color:white; padding-left: 50px; text-align: left; } My button is here: { xtype: 'button', text: '<div class="quest">Info</div>', labelWidth: '100%', name: '', handler: function() { } } My button has grey borders (Grey default button color in

How to run Sencha Touch Application in Eclipse

↘锁芯ラ 提交于 2019-12-05 10:28:48
i am new to sencha touch & phone gap.i want to run simple hello word app in eclipse.but i dont know how to do it.if any one knows it than let me know fast Thanks in advance Aamirkhan I. UPDATE: Well there is a plugin availble for eclipse in which we can easily create any sencha,jquery mobile,phonegap project's,just need to follow some steps to integrate that plugin..see MY POST for that plugin guide,i updated my answer just to help other's who don't know how to write sample application in phonegap eclipse. Thanks follow this folder structure. ---your application name -------src -------------

Sencha Touch list not displaying (again!)

青春壹個敷衍的年華 提交于 2019-12-05 09:38:50
My Sencha Touch list isn't displaying. All I did was change the root container to a navigation view so other views can be pushed onto it, but then the navigation doesn't like having 'fit' as the root. So I moved that into another container with type 'fit'. However, now the list doesn't display?! See below: Ext.define('MyApp.view.inbox.MyInbox', { extend: 'Ext.navigation.View', alias: 'widget.myinboxview', requires: [ 'Ext.navigation.View' ], config: { title: 'My Inbox', xtype: 'card', items: [ { xtype: 'container', type: 'vbox', items: [ { xtype: 'container', flex: 1, items: [ { xtype:

Why is there no sync callback in Sencha Touch?

谁说我不能喝 提交于 2019-12-05 09:29:48
I'd like to be able to show a message to the user once a store sync has successful completion. However, there doesn't seem to be any way of using a callback or calling this synchronously. I'm a little surprised this isn't provided out of the box as it must be a common problem. Is there any work-around for this? Zoltan Magyar It took us ages to find a proper solution to this. Finally we added listener to the store's write event what seems to be working properly. As it is needed frequently it has been added to the store prototype as Ext.data.Store.prototype.syncWithListener = function

Insert the data in phonegap database table?

允我心安 提交于 2019-12-05 07:54:25
问题 In my application, i want to insert the value in the table. i have created the databse in onDeviceReady() method in the index.html file. <!DOCTYPE html> <!-- Auto Generated with Sencha Architect --> <!-- Modifications to this file will be overwritten. --> <html> <head> <meta name="generator" content="HTML Tidy, see www.w3.org"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Teritree</title> <script type="text/javascript" id="phonegap" src= "cordova-2.0.0.js"> <

Sencha Touch and ExtJS

会有一股神秘感。 提交于 2019-12-05 06:05:31
Sencha Touch looks impressive, and ExtJS looks nice. I am evaluating if I should use ExtJS or SproutCore for an upcoming app. Now that Sencha Touch is in the mix, I wonder if I choose ExtJS, it'd be easier to port/migrate part of the app to mobile world. Is that true? Would I be able to have the same code base for both ExtJS for desktop browsers and Sencha Touch for mobile devices? If not how much different would the code base be? Just came from an EXTJS meetup where one presentation was about Sencha Touch. An app was ported from the former to the latter -- it was claimed that ~40% code could

Sencha Touch 2 event: painted vs show?

别等时光非礼了梦想. 提交于 2019-12-05 05:09:19
问题 I have a question regarding the show event. in my application I'm handling the painted event of my panel like this: Ext.define('mvcTest.controller.Test', { extend: 'Ext.app.Controller', config: { refs: { panel: '#testpanel' }, control:{ panel: { painted: 'onPainted' } } }, onPainted: function(){ alert('painted'); } }); the docu say's, that there is also a "show" event, but it get not fired at all: Ext.define('mvcTest.controller.Test', { extend: 'Ext.app.Controller', config: { refs: { panel: '

How to remove particular view from navigation stack in sencha touch?

孤者浪人 提交于 2019-12-05 01:33:02
问题 I'm pushing views like this this.up('navView').push({xtype: 'myView'}) How can I remove particular view, which is in the middle of navigation stack? At least I should get rid of this warning [WARN][Ext.Component#constructor] Registering a component with a id (listxyz) which has already been used. Please ensure the existing component has been destroyed (Ext.Component#destroy(). 回答1: Before pushing a view check weather the view already exists, and destroy it if its already there, so you wont

Sencha Touch MVC Best Practices

微笑、不失礼 提交于 2019-12-04 23:21:47
问题 I'm trying to wrap my mind around the MVC framework of Sencha Touch, but I'm finding a couple of different approaches. In one, found here, there is an approach to structuring Sencha Touch apps presented at SenchaCon 2010. It has the added weight of being by a Sencha Touch employee, but it is several months old. In other, more recent posts on Sencha Touch MVC, they have tutorials (such as here, as well as Manning's MEAP Sencha In Action by Jay Garcia) that seem to rely on Ext.Dispatch in the

google maps implementation in sencha touch 2 (the MVC way)

旧街凉风 提交于 2019-12-04 22:25:44
can anyone please point me in the right direction about how to implement google maps in sencha touch 2.2.1 in an MVC fashion? a good step by step tutorial maybe? I need to have a view and a controller but am not sure what is the correct way of doing it as regards defining map options and initializing the map. Been looking at various tutorials on the Internet but none of them matches exactly what I want to implement. I am using a tab panel and my map needs to be displayed when clicking one of the tabs (called Location)... first, you have to put the map panel as item of your tab container: {