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
Sencha touch 2 adopts the same class system as ext4.x ),Class System provides inheritance, dependency loading, Mixin, configuration options, etc.Javascript is a good way to implement Object-oriented thinking.
1. Define a class
Ext. define (' Car ' ,{ alias: ['widget. Car '], config: { speed : null }, constructor: function (config) { This . initconfig (config) ;}, run: function () {alert ( This. getspeed () ) ;}});
http://kiahu.com/tutorial/generate-a-skeleton-project-using-eclipse-sencha-cmd-and-sencha-touch/The above is a clear description of how to configure, here are the areas to note:Since we use Sencha cmd, all the Web foreground configurations are focused on Webcontent/app.json, and Webcontent/app.json is managed by boostrap, so every time you update App.json, All ne
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
General app, the basic layout of the page is the same, the following is a few tab, to choose to achieve the role of page switching. Click on the different buttons, the interface will switch to different content. This can be done easily in Sencha touch.First, we want to make sure we're using TabPanel to build here. As the name implies, the component adds tab to the bottom of the interface and can tab through the page. The base code is as follows:Launch
Note: If your store is using. ashx from the. NET background and debugging with a Web server with Sencha cmd, the following error will be returned when Chrome is debugged.[WARN] [Ext.data.reader.reader#process] Unable to parse the JSON returned by the Server:Error:You ' re trying to decode an invalid JSON String: [WARN] [Ext.data.reader.reader#process] JSON Object Not foundThis problem has been bothering you for a week! I don't know why I can't return
This address: http://blog.csdn.net/sushengmiyan/article/details/43487751This article Sushengmiyan--------------------------------------------------------------------------------------------------------------- ---------------------Sencha ExtJS 5 Adds a struts2 configuration that allows you to interact with the background to get the data displayed after setting up the foreground layout. One problem is that Struts2 's jump action support for URLs is good
The left TabBar and senchatabbar of Sencha Touch 1.x TabPanelFirst look at the effect
Actually, problems may occur.
In sencha touch, tabBar can be displayed normally only when it is set on or below.
If it is set to the left side, the following result is generated by default:
To solve this problem, my first reaction is to use css. But that undoubtedly increases complexity. (I did that too, so it's so troubl
This article has been added to Sencha Touch 2 QuickStart Series index:http://blog.csdn.net/ardy_c/article/details/7544470
Reprint please indicate the source: http://blog.csdn.net/ardy_c/article/details/7497330
In applications, there are many times when you need to interact with users. forms (Forms) this thing gives us a good interface. I'm sure you are familiar with the traditional HTML form. The form in Sencha
A lot of people have already discovered that by ordering "gem install compass" To install compass, the following exception will be reported when compiling scss using "Compass compile":"File to import not found or unreadable:blueprint/typography"Google a bit, said the new compass has not included compass-bluprint.So I tried to execute the command "gem install Compass-blueprint" and manually install Compass-blueprint myself. Although it was loaded, the "Compass Compile" was compiled scss with an e
After using components in 1.Sencha through layout: ' VBox ' specifies that the page layout is a vertical box layout and the height of the component is high: ' percent ' specifies the background color of the component through style: ' Background: #F6F6F1 ', The background color of the component cannot be displayed, which means that the style configuration option is invalidated. The workaround is to set the height to the shaping value.2. When an interfa
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.