This article is the study of their own in the process of learning Sencha touch record, mainly JSONP cross-domain request this aspect, for Wei he is cross-domain concept and unfamiliar, you can ask the mother.First Picture:I want to complete the function is the table drop-down refresh, and send the request to my own writing service terminal, because the service program and this Sencha program is no longer a
Original article: http://www.sencha.com/blog/ui-testing-a-sencha-app/A few months ago, I wrote an article entitled "Automated unit testing", covering how developers compile unit testing and verify Javascript syntax for business logic. You must understand these concepts when creating an enterprise application: You must capture errors or potentially catastrophic consequences before an update is pushed to a product.One area not covered in that article is
Original article: Using plugins and mixins in your sencha apps
Overview
When extending the functions of a framework class, new functions are usually directly written to the derived class. However, if the same function is required to exist in multiple components, the most effective way is to define it as a plug-in or plug-in. Plug-ins and INS are classes used to add additional functions to other classes. In this article, we will introduce what these cl
The paging function of sencha touch 2's list must not be described too much. You should know it all. There are also official examples.
However, it is not perfect to directly copy the paging function of the List to dataview. There is a small bug that leads to continuous loading ....
Uncaught typeerror: object [object] has no method 'scrolldockheightrefresh'
Obviously, this function is not available in the dataview component, only in list, but this met
You may have tried
Docked: 'right'
Then the right side is not correct.
You may have tried
Right: '0%'
Top '123'
Ugly
You may have tried
Align: 'right'
Sorry, the button does not have this attribute.
So... The answer is:
Items: [{xtype: 'call', UI: 'mask', iconcls: 'refresh', Handler: refresh}, {xtype: 'spacer'}, {xtype: 'button ', UI: 'mask', iconcls: 'add', Handler: refresh}]
Add a space.
Just to explain the reason behind this. in
When you see thisArticleI believe you also know why cross-origin access is required! I will not talk about it here. In sencha touch 2, cross-origin access can be implemented using ext class library to provide our class Ext. data. jsonp. If you want to submit a request, you can use the request () method as follows:
When submitting a request, you can write it like this
1 Ext. Data. jsonp. Request ({ 2 URL: 'http: // api.xxx.com ', 3 Params :{ 4
(' logo ') != "" | | record.get (' logo ') != "NoMatch") { varimg=config.upload+ "s/" +record.get (' directory ') + '/' +record.get (' logo '); me.down (' #cart_goods_view_img '). SETSRC (IMG); }me.down (' # Cart_goods_view_name '). Sethtml ((record.get (' name '). LengthOther controller and model omittedResult diagram:One problem has not been solved, Me.down is to takeCartviewgoodsThe first layer of the component, if it is to take the second layer of the component how to get it?For example:{xt
If sencha is not set, it is a framework page. When you click the return key of a browser or Android, the page or the entire program will pop out.Therefore, you need to implement the route pathI have provided a detailed description on the Internet. I have been studying it for a long time.First, you must add the historical path at the beginning of main. In app. jsLaunch: function (){// Add the historical path and set main to home.This. getApplication ()
setting value value for each option , Passing value value into the sort method and sort them as required. Second, searchin DataView, there is a way to filter data in the Data Warehouse, with the following code:Store.filter (' LastName ', ' Tom ');This sentence means to filter out such data, its lastName property value is Tom. Similarly, if we want to implement the user search function, define a search box and pass the value entered by the user into the filter function. It is also possible to
The store in the ComboBox drop-down box can be used to load data in addition to a jsonstore, and it can be written directly in the form of a string array.{ ' combobox ', ' Label ', store: [ ' AA ', ' BB ', ' CC ' ], listeners: {change : { fn:me.onComboboxChange,
the value for each option . The value values are passed into the sort method and sorted according to the requirements. Second, searchThere are methods for filtering data in the Data Warehouse in DataView. The code is as follows:Store.filter (' LastName ', ' Tom ');This sentence means that the data is filtered out. The value of its lastName property is Tom. Similarly. Suppose we want to implement the user's search function. Define a search box to pass the value entered by the user into the f
project Lib:Ok. Test it yourself and add it to the project library as you normally would.ExtJS Front-End export settingsAdding the bottom gridtoolbar content to the front-end ExtJS grid adds an export Excel button that adds processing events and associates the handle event to the background action.exportexyjsGrid: function (grid) {//关联后台,传入需要的参数}ExtJS Solutions for the backendAction handling in the background:Create an Excel workbookHSSFWorkbook workbook = new HSSFWorkbook();Create an Excel tab
This phenomenon only appears in PhoneGap packaging Sencha Touch wp8.1 program will appear ( only WP8.1,WP8 normal ), other JS framework I tested several (app framework, jquery Mobile), It seems that there is no problem.Let me describe this phenomenon:1, run PhoneGap package WP8 program, open an interface with input box, such as:2. Click the input box to eject the soft keyboard, the interface will move up, such as:3, click the Back button to hide the s
Fix Sencha app build to capturing theme image does not executeToday's computer reinstall system, re-installed Sencha cmd, but in the packaging, to the capturing theme image is always not executed, has been thought to be Ruby is not installed, or ruby related tools are not installed, and finally constantly groping, With Ruby and related things in place, see http://www.cnblogs.com/eshinex/p/4617554.html, but
As of sencha touch2.1, the following 19 events supported by sencha touch
doubletap drag dragend dragstart longpress painted pinch pinchend pinchstart resize rotate rotateend rotatestart singletap swipe tap taphold touchmove touchstart
These 19 events are supported by
This address: http://blog.csdn.net/sushengmiyan/article/details/46740381Brief introductionSencha cmd 6 installation process does not require UAC control for Widnows, for Mac is the start permission, the previous version, we are more troublesome to download the correct version of Ruby to use CMD, Now that you have 6.0, you don't need to install Ruby separately, and the new version cancels out the dependency on Ruby. The new CMD adds a default installation of the JRE, and when you select the downl
In the past, when I tried to deploy the tool, I always encountered an error and did not prompt where the error occurred. I tried it several times and put it down. I tried to get it over the past few days. It took me nearly a day, I finally got it done (encoding problem, helpless). Now I want to share it with you, hoping to help students who have the same problems as me.
This tutorial describes how to use sencha SDK tools to deploy extjs 4.xProgram.
Today, I converted an Email web version written with sencha touch into an Android mobile phone version.
Several problems were found.
One Eclipse plug-in is MDS.
MDS applaud 1.2-https://svn.codespot.com/a/eclipselabs.org/mobile-web-development-with-phonegap/tags/r1.2/download
1. Although the plug-in provides integrated options for sencha and phonegap, it still cannot run after the project is created. T
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.