sencha-touch

Add Dynamically A View in another View

女生的网名这么多〃 提交于 2019-12-11 16:19:43
问题 I have created a view 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', label: 'Asset Type', store: 'AssetTypeSelectorStore', }, {

Sencha Touch app appears blank in browser

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 15:41:54
问题 I have a really simple Sencha Touch 2.0.1 app made with Sencha Architect 2.0.0: a list of items loaded from a local json file. If I export it to an APK and install it on my droid, it displays perfectly. However, when I try to preview it in my browser it appears as a blank white screen. I have tried it in both Chrome and Safari. Safari displayed it perfectly the FIRST time I loaded the page, but I have never gotten it to work again. I tried clearing internet data, to no effect. Since I have no

Reduce the height of a titlebar - Sencha

人走茶凉 提交于 2019-12-11 14:49:12
问题 I have a container with a few different items stacked in. I also would like to have two title bars inside the container BUT with height reduced to 10 points. I have tried to reduce the size using setHeight() with a lesser number but I can't seem to achieve that. Am I missing something obvious? Is there a way I can reduce the height of a toolbar/titlebar in Sencha Touch? Help! UPDATE: Here is the code I use for a toolbar... Ext.define('MyApp.view.CookingSteps', { extend: 'Ext.Container', alias

itemtap is not getting fired in list

橙三吉。 提交于 2019-12-11 12:48:13
问题 i have loaded json data into list in sencha touch using itemTpl , everything is getting displayed properly as of now but somehow itemtap event of the list is not getting fired. i don't know what is the reason, following is my code where one can see the listeners inside config and nothing happens there. Ext.define('demo.view.ProfileList',{ extend:'Ext.dataview.List', xtype:'profilelist', requires:[ 'demo.store.ProfileStore', 'Ext.plugin.ListPaging' ], config:{ plugins: [{ xclass: 'Ext.plugin

Set page size Sencha touch

本秂侑毒 提交于 2019-12-11 12:15:47
问题 I've been trying to set a page size so that my app runs faster. I'm reading from a huge xml file (thousands of rows) and I want to use the ListPaging plugin to load only one 'page' at a time. Here is my list: xtype : 'list', plugins: { xclass: 'Ext.plugin.ListPaging', autoPaging: true, loadMoreText : 'Loading more...', noMoreRecordsText : 'loaded' }, store : 'mainStore', height : '100%', layout : 'fit', id: 'myList', flex : 5, itemTpl : "foo" Here is my store: config: { model : 'myApp.model

Google Maps API v3 marker setPosition not working in Safari (sencha touch)

偶尔善良 提交于 2019-12-11 12:15:42
问题 I am using Sencha Touch to develop a mobile version of a Bus Tracker for Boston University. The problem I a running into is that the method setPosition() for a google.maps.Marker is not rendering the position change in Safari or any Mobile browser. The code set up is as follows: I initialize an empty markers array I initialize the map using Ext.Map() (sencha call) I load data using a JSONP request every 5 seconds interval Every time I get new data, I check if I have a marker for that bus id

how to display list and other labels in single page using sencha touch2

放肆的年华 提交于 2019-12-11 12:00:11
问题 I am new to sencha touch2. i want to display some text labels below in that want display list. so i have define some labels and accessing twitter service it will give list of data. below is my code. in this code if I comment the extend: 'Ext.form.Panel', if i used extend: 'Ext.navigation.View' then list data will display but wont display defined labels. if I comment the extend: 'Ext.navigation.View', if i used extend: 'Ext.form.Panel' then list data wont display but it will display defined

How to set a position to Ext.Msg.show in sencha

半腔热情 提交于 2019-12-11 11:42:14
问题 How can I set a different position for Ext.Msg.show in senchatouch. I have tried using the methods msg.getDialog().getPositionEl().setTop(50); & msg.getDialog().setPosition(undefined,50) However I am getting a error Object [object Object] has no method 'getPositionEl' or Object [object Object] has no method 'getDialog' . I have even checked these methods in my MessageBox.js file in sencha but they do not exist. However almost solution on the net seems to recommend these methods.Experts could

Display math symbols in Ext.js / Sencha Touch

℡╲_俬逩灬. 提交于 2019-12-11 11:39:33
问题 I'm looking for a way to display math symbols and equations (coming from Latex e.g.) in Ext.js / Sencha Touch UI-Components (specifically buttons and textfields). I grasp that "ext.draw.component" might be a good starting point to develop something appropriate. Is there another way to display math? What would be your choice? Anyone came up with a solution for a similar problem already? Any advice appreciated. Best regards, Thomas 回答1: If you all you want to do is display mathematical symbols

Disable Sencha script loader cache busting but only while developing/debugging

强颜欢笑 提交于 2019-12-11 10:18:30
问题 I'm working with ExtJS 4.x and Sencha Architect 2.2 but this should be relevant to later versions and any application that uses the Ext.Loader class to dynamically load scripts, including Sencha Touch. By default Ext.Loader adds a ?_dc=... cache busting parameter to make sure that the latest version of each script is loaded into the browser. When deploying to a production or beta-test environment this is a good thing as it ensures the user/tester gets the latest script each time you deploy