sencha-touch

Sencha Touch chart - How to add label/value in column chart

时光怂恿深爱的人放手 提交于 2019-12-25 06:12:42
问题 I am using Sencha Touch charts 1.0.0 for my project. I would like to add values on each bar in the column chart. Is is possible to do ? For example, see the image: I would like to add the values for each bar. Any help appreciated. 回答1: just add this in yoour series config label: { display: 'outside', field: 'score', orientation: 'horizontal', // 'vertical' text-anchor': 'middle' } 回答2: Label config is not work for me. I used labelField:'comedy' in series it work. 回答3: Came across this problem

running sencha + phonegap + blackberry

拥有回忆 提交于 2019-12-25 05:10:12
问题 I runing sencha application using blackberry phonegap.for this steps i following; 1. make build of sencha application using command(sencha app build package) 2.created blackberry phonegap project and under this created www folder 3. copied all files from sench build and paste in the www folder 4. run blackberry phonegap project after running project i get white screen. can please anyone tell me what i'm doing wrong. my index.html code is: <!DOCTYPE HTML><html manifest="" lang="en-US"> <head>

running sencha + phonegap + blackberry

徘徊边缘 提交于 2019-12-25 05:09:11
问题 I runing sencha application using blackberry phonegap.for this steps i following; 1. make build of sencha application using command(sencha app build package) 2.created blackberry phonegap project and under this created www folder 3. copied all files from sench build and paste in the www folder 4. run blackberry phonegap project after running project i get white screen. can please anyone tell me what i'm doing wrong. my index.html code is: <!DOCTYPE HTML><html manifest="" lang="en-US"> <head>

Textfield to pop out a keyboard which contains the phone keypad/numbers only

◇◆丶佛笑我妖孽 提交于 2019-12-25 05:08:43
问题 I have created a textfield as follows; { xtype:'textfield', name:'telephone', label:'Telephone' } Instead of popping up the default keyboard which has characters and numbers. I need the keyboard to only display the phone keypad (Only numbers). Since the textfield is about getting the phone number of the user, there's no point displaying a keyboard with characters. 回答1: You might want to try using numberfield instead. 回答2: Using property component of textfield: { xtype:'textfield', component:

Not getting success in calling asp.net web service from sencha touch

有些话、适合烂在心里 提交于 2019-12-25 04:21:29
问题 Here's my code which i am using to get data from web service:- Ext.onReady(function(){ var url = "http://192.168.1.15/JSONDemo/Service1.asmx/getString"; Ext.Ajax.request({ method: 'get', url: url, // params: {'name':'himanshu'}, jsonData: { 'name': 'Himanshu'}, // headers: { 'Content-Type': 'application/xml; charset=utf-8' }, success: function (response, request) { alert('Working!') alert(response.responseText) console.log('Response:-'+response.responseText) }, failure: function (response,

Sencha Touch 2: How can I add Google+ Login?

柔情痞子 提交于 2019-12-25 03:49:08
问题 I would like to add a Google+ Login to my Sencha Touch 2 webapplication, according to https://developers.google.com/+/web/signin/?hl=de#using_the_client-side_flow. I have added the google script into the app.json (defined as remote script) and it gets loaded. I created a Container with the html stuff (described by google): Ext.define('Bubbles.view.LoginView', { extend: 'Ext.Container', id: 'loginView', config: { fullscreen: true, layout: 'fit', html: '<span id=\"signinButton\">' + '<span

How do I keep the images when changing tabbar position?

别来无恙 提交于 2019-12-25 03:29:16
问题 Hi I would like to know how to keep the icnClass when I set the tab to the left as so: Ext.define("GS.view.Main", { extend: 'Ext.tab.Panel', requires: ['Ext.TitleBar'], config: { tabBarPosition:'left', scrollable: true, styleHtmlContent: false, items: [ { xtype: 'panelhome' }, { xtype: 'contactform' }, { xtype: 'blog' } ] } }); Ext.define("GS.view.Blog",{ extend: 'Ext.navigation.View', xtype:'blog', config:{ title:'Blog', iconCls:'bolt', items:{ xtype:'list', itemTpl: '{title}', title:

Get access to console in Sencha Touch app running on iPhone

南楼画角 提交于 2019-12-25 02:29:07
问题 I want to use console.time('a') and console.timeEnd('a') in my Sencha Touch iOS app. This functions prinnt measured time in microseconds on console. How to get access to console while I'm running my app on iPhone? I tried with Safari Remote Web Inspector (like Phonegap iOS Safari debug workflow), but it doesn't work. It give me access to index.html, and Web Inspector opens correctly, but all his tabs are empty including console tab. (I tried used Safari Remote Web Inspector with PhoneGap and

How can I spot a 302 response in Sencha Touch Ajax Request

血红的双手。 提交于 2019-12-25 00:52:48
问题 I am making an Ajax.request to a backend I don't control. This request sometimes redirects me to the login page, and my response.status is 200 instead of 302. So far I have tried this: Ext.Ajax.on("requestexception", function(conn, response, options, eOpts){ console.log(conn); console.log(response); console.log(options); console.log(eOpts); }); Ext.Ajax.request({ url : 'someUrl' params : params }); Obviously this redirection is not what I expected so I need to spot when a 304 happened. There

How to perform action on the basis of response status while doing sync in Ext.js

人盡茶涼 提交于 2019-12-25 00:17:50
问题 This is my store MyStore.js Ext.define('myProject.store.MyStore', { config:{ storeId: 'MyStore', autoLoad: false, autoSync: false, allowSingle: true, clearOnPageLoad: true, model: 'abc.model.MyStoreModel', proxy: { type: 'rest', actionMethods: {create: 'POST', read: 'GET', update: 'POST', destroy: 'POST'}, url:'/services/rest/MyService/myService', reader: { type: 'json', rootProperty:MyServiceView.elements.collection', successProperty : 'success' }, writer: { type: 'json', root: