sencha-touch-2

How to change the background color of the grouped heading in List in sencha touch 2?

隐身守侯 提交于 2019-12-11 09:35:46
问题 I have a list with 2 groups. I want to override the default background color of the headings given to the group in the list. How to change the background color of the grouped heading in List in sencha touch 2? 回答1: You can easily do this by adding ur own class to the list and the find the class names that define the styles for the headers using the chrome developer tools. Add cls to the list like { xtype: 'list', itemTpl: '<div class="contact2"><strong>{firstName}</strong> {lastName}</div>',

How to add an image in textfield in sencha touch [closed]

断了今生、忘了曾经 提交于 2019-12-11 09:31:55
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . I want to add a small image in the text field in sencha touch. For example a small user icon in the username text field. 回答1: Create your textfield like this: { xtype: 'textfield', cls: 'username', fieldLabel : 'Username', // works for ExtJS label : 'Username' // works for Sencha Touch } and add

sencha touch list tpl event reference

人走茶凉 提交于 2019-12-11 09:18:34
问题 In my list view, I put addEventListener ( alias on ) in my initialize event initialize: function (component) { component.element.on({ tap: { scope: this, fn: 'onTap', delegate: 'div.side-itemDelete' } }); }, But if there are more delegate ( other element with id or class) I need to bind an event, how can I handle it? This is my XTemplate: new Ext.XTemplate( '<div class="side-weatherListItem no-dragging">', '<div class="side-itemLocation">', '<div>{[values.city.toUpperCase()]}</div>', '<div>{

Loading dynamic data from xml file in grid Issu

ぃ、小莉子 提交于 2019-12-11 09:00:54
问题 I am trying to integrate a table view in my parent view using "Ext.ux.touch.grid" library. But I am unable to display the data in the table. My code are as follows: Grid View: Ext.define('RasovaiApp.view.Grid', { extend : 'RasovaiApp.Ext.ux.touch.grid.List', xtype : 'grid-grid', id: 'grids', requires : [ 'RasovaiApp.Ext.ux.touch.grid.feature.Feature', 'RasovaiApp.Ext.ux.touch.grid.feature.Editable', 'RasovaiApp.Ext.ux.touch.grid.feature.Sorter', 'Ext.field.Number', 'RasovaiApp.store

Size of tab in sencha

…衆ロ難τιáo~ 提交于 2019-12-11 08:22:58
问题 I want to modify the size of the tab in css. I found the variable $tabs-bottom-icon-size which modify only the size of the icons in the tab. Is there any variable which allows me to modify the size of the entire tab? And if not,how can i do this? Thank you. 回答1: Unfortunately not. You will have to just override the height of both the .x-tabbar and .x-tab classes. .x-tabbar { height: 5em; } .x-tab { height: 4.5em; } 来源: https://stackoverflow.com/questions/10210114/size-of-tab-in-sencha

How to get the center coordinate of the map(Ext.map) in sencha touch 2?

无人久伴 提交于 2019-12-11 08:20:00
问题 I use an Ext.Map to let a user choose a certain place and I want to get the coordinate (or the coordinate of the map center) that user chooses. Which method should I use? I can't find a proper one in the doc. 回答1: Check out my answer to similar question given here. This will give you an idea. How Can I Get marker on current location in map in Sencha-Touch2.0 EDIT: To obtain the position co-ordinates ( i.e latitude and longitude) from the textual address, you will need to use Google Maps

Adding a 'Controller' class to my MVC based Sencha Touch project

*爱你&永不变心* 提交于 2019-12-11 08:19:16
问题 I have created a MVC SenchaTouch project. I have created a sample application where the user will enter the username and password and send it to the web service. The username, and password fields are suppose to be in the 'VIEW', and the 'sending it to the web service' functionality should be in the 'CONTROLLER'. In my program, the sending to the web service part is also there in the 'VIEW', so can someone please help me edit my code, so that i could have the 'send to the web service'

Google maps API required

旧时模样 提交于 2019-12-11 07:51:51
问题 When i try to show the map in my aplication its showing the messsage as "Google maps API required" in the view, Here my code var mapapnel = Ext.create('Ext.Panel', { id: 'mapapnel', height: '100%', width: '100%', fullscreen: true, layout:'fit', layout:'vbox', items: [{ xtype: 'toolbar', ui:'light', docked: 'top', title: 'Find location', items: [{ text: 'Back', ui: 'back', handler: function() { Ext.getCmp('homepnl').setActiveItem(1); } },{ xtype:'spacer' }]}, { xtype:'map', useCurrentLocation

How to run a sencha touch project in Xcode emulator

冷暖自知 提交于 2019-12-11 07:38:26
问题 Am creating a App using sencha touch. Am testing the app using chrome, its working fine. Now am moving to Mac OS so i have to run the same app in Xcode to test . Dont know how to run the sencha project in xcode. Please direct me in right direction. Your help is much appreciate. Thanks in advance.. 回答1: You need to use PhoneGap to host it. Have a look at PHONEGAP + XCODE4 Basically, create a PhoneGap project and put you sencha touch stuff in www folder. Here is another article, which uses

How do I build a sencha app to target production in a specific folder?

人走茶凉 提交于 2019-12-11 07:15:52
问题 Using the latest Sencha Cmd tool v4.0.2, how do I build an app for production mode into a specific folder not into its default build folder within the app folder. I am trying to do this from the command line but not succeeding at all. Tried this according to their help on command line but had no success with it for several weeks now: Sencha Cmd broken: Why does 'app build' ignore any command line parameters? No-one seems to know what the issue is. Am I the only person in the world who is