sencha-architect

Cordova InAppBrowser Doesn't scale the page loaded

岁酱吖の 提交于 2019-12-08 07:59:44
问题 Can anyone please help me get the external page that the Cordova InAppBrowser loads on Android app to fit to the phone screen size ?. I am invoking the inapp browser from a Sencha Touch app using the follwing code. var opt = 'location=no,clearcache=yes,closebuttoncaption=Back,EnableViewPortScale=yes'; window.open('http://sg-prod-mobilityapi.cloudapp.net','_blank', opt); When ever I invoke the url I get the following screen Could anyone please help me out ?. 回答1: If the external page fit to

How to show label with line and display label outside in piechart in extjs4.1

梦想与她 提交于 2019-12-08 05:22:45
问题 can anybody tell How to show label with line and display label outside in extjs4.1.I want to display label outside of pie and show line to map the label eg / \ \ test test1 test2 回答1: You've got the display option of the label config, that you can set to 'outside'. As for the lines, you'll have to draw them yourself... Which would be a quite involved hack IMO. If you're interested in trying, that takes place in Ext.chart.Label#renderLabels(), and uses Ext.chart.series.Pie's onCreateLabel()

How to show label with line and display label outside in piechart in extjs4.1

二次信任 提交于 2019-12-08 04:04:25
can anybody tell How to show label with line and display label outside in extjs4.1.I want to display label outside of pie and show line to map the label eg / \ \ test test1 test2 You've got the display option of the label config , that you can set to 'outside'. As for the lines, you'll have to draw them yourself... Which would be a quite involved hack IMO. If you're interested in trying, that takes place in Ext.chart.Label#renderLabels() , and uses Ext.chart.series.Pie 's onCreateLabel() and onPlaceLabel() methods. Don't forget to take your trigonometry with you before diving in there! 来源:

How save image to phone memory say SD card or local hard drive when a image tap event is fired?

北城余情 提交于 2019-12-07 10:20:22
问题 I have an image which I am displaying with the help of image view using Sencha Architect 2. I am able to get a tap event on the image. But I don't know how to save the image to phone when the image is tapped. I did a Google search for this but could not find the proper documentation or example. Can anyone help me please. Here is the code I am trying tap: function(img, e, options) { var overlay = Ext.Viewport.add({ xtype: 'panel', modal : true, hideOnMaskTap : true, hidden : true, width : 100,

sencha touch override ext.ajax

我是研究僧i 提交于 2019-12-07 08:11:26
I'm writing a sencha touch app using sencha architect. Because my app do lot of ajax request, most of it need to send 'token' in request header for authentication. So I think of create child class base on Ext.Ajax which always has 'token' in request header. Then I can use this child class without care of the header. MyApp.override.Ajax.request({ ... }) I try define this in app/override/Ajax.js Ext.define('Myapp.override.Ajax', { override: 'Ext.Ajax', headers: { 'token': 'test' } }); I also set this as 'requires' in Application. But get error when try to call Myapp.override.Ajax.request({ ... }

How to add total row in grid footer in extjs

心已入冬 提交于 2019-12-06 04:53:16
问题 I want to add total row in grid footer. I have total row that record is available in store. In grid the user selects descending order, total row appears as the first row. Can anybody tell me how to avoid this? I will explain my full problem: eg I have grid view like Target Target1 Target2 are getting from webservice Month Target Target1 Target2 Target(2-1) Target% jan 500 1000 1001 1 0.99 feb 600 2000 2001 1 0.99 **total 1100 3000 3002 2 2*3002/100** need to calculate total% like this I am

Load another view after login with sencha touch 2.0

半城伤御伤魂 提交于 2019-12-04 21:20:12
I'm having a dumb problem and I would like you to give me a hand.Thanks in advance. The situatios is as follows: I have 2 wiews (both created with sencha architect 2.0), one for login, and another for general purposes. And I would like to load the second view on successful response when trying to log in, this is, after any successful login. The main problem is that I've tried with Ex.create, Ext.Viewport.add, Ext.Viewport.setActiveItem, but I can't manage to make the second view to appear on screen, the login screen just keeps there and the app does not load the other view. Another thing, I

How to add filters in grid column headers in extjs?

纵饮孤独 提交于 2019-12-04 15:41:41
I have a grid with lots of records in it. so I want to add filters in each column header to filter the required data easily. I have seen the example given in the sencha docs. But How to implement it in the Extjs 4.2 version. How to use UX classes in it? Is there any plugin available? I am greatly thankful to you. Please help me. Anand This is an example: Ext.define('Webdesktop.view.admin.List', { extend: 'Ext.grid.Panel', alias: 'widget.admin_casoslist', initComponent: function() { var me = this, filters = { ftype: 'filters', encode: false, local: true }; Ext.apply(me, { title: 'gridTitle',

Error building application in Sencha Architect

微笑、不失礼 提交于 2019-12-02 10:25:27
问题 Having this error when i build my app in Sencha Architect build failed com.sencha.exceptions.ExNotFound:Failed to detect Ruby and i do have Ruby installed in the following path C:\wamp\www\ruby-1.9.3-p448-i386-mingw32\ruby-1.9.3-p448-i386-mingw32\bin\Ruby193\bin . I have also defined the ruby path using the control panel but it is still not working. Please help 回答1: Add Ruby path (eg. c:\ruby\bin) to the PATH environment variable. Note: not PATH in User variables, but in System variables only

Extjs create a grid feature or grid plugin that sets a tooltip for each column in the grid

℡╲_俬逩灬. 提交于 2019-12-02 02:13:45
问题 This question has the answer to adding the tooltip: Extjs4 set tooltip on each column hover in gridPanel I have a follow up question to the most upvoted answer to this question, which is modifying the renderer function to add the tool tip like below: { xtype : 'gridcolumn', dataIndex : 'status', text : 'Status', renderer : function(value, metadata) { metadata.tdAttr = 'data-qtip="' + value + '"'; return value; } } I want to have a grid plugin or feature which sets a custom tooltip using the