Sencha Touch App Example-oreilly app Analytics

Source: Internet
Author: User

FROM:2013/8/30 's Notes

    • Reading the App.json configuration file using Development.js

    • App.json Configuration of App.js file

    • App.js lauch function, first with util. Proxy.js read feed.js data, (saved in local variable?). How does it come out? ) Viewport.add Main

    • Initial interface: View. Card.js Extend:navigationview ()

      • Categories of items Session---in detail.js

      • Detail Extend Container

      • Xtype: ' Component '

Contorller:

Config

Control:

itemtap: ' Onspeakertap ':


Onspeakertap:function (list, IDX, El, record) {

This.speakerInfo.config.title = Record.getfullname ();//This getfullname () is defined in Model/speaker.js

This.getsessioncontainer (). push (This.speakerinfo);

}



Config: {

Refs: {

Speakercontainer: ' Speakercontainer ',

Speakers: ' Speakercontainer speakers ',//

Speaker: ' Speakercontainer speaker ',

Speakerinfo: ' Speakercontainer speakerinfo ',

Sessions: ' Speakercontainer speaker list '

},

Control: {

Speakers: {

Itemtap: ' Onspeakertap ',

Activate: ' Onspeakersactivate '

},

Sessions: {

Itemtap: ' Onsessiontap '

}

}

},



Ext.app.Controller


Refs:object4

A collection of named Componentquery selectors that makes it easy-get references to key components on your page. Example usage:

Refs: {
Main: ' #mainTabPanel ',
Loginbutton: ' #loginWindow button[action=login] ',

Infopanel: {
Selector: ' Infopanel ',
Xtype: ' Infopanel ',
Autocreate:true
}
}

The first and the simple Componentquery selectors, the third (Infopanel) also passes in the Autocreate and xtype options, Which would first run the componentquery to see if a Component matching that selector exists on the page. If not, it'll automatically create one using the Xtype provided:

Somecontrollerfunction:function () {
If the Info panel didn ' t exist before, calling its getter would instantiate
It automatically and return the new instance
This.getinfopanel (). Show ();
}

Defaults to: {}


Ext.componentquery



Provides searching of components within ext.componentmanager (globally) or a specific ext.container on the document with a Similar syntax to a CSS selector.

Components can is retrieved by using their xtype with an optional '. ' Prefix

    • Component or. Component

    • Gridpanel or. Gridpanel

An itemId or ID must is prefixed with a #

    • #myContainer

Attributes must is wrapped in brackets

    • Component[autoscroll]

    • Panel[title= "Test"]

Member expressions from candidate are tested. If the expression returns a Truthy value, the candidate Component'll be is included in the query:

var disabledfields = Myformpanel.query ("{isdisabled ()}");


Ext.navigation.View

The effect of sliding left and right, Push/back




Touchstyle: Infinite Carousel


' Ext.carousel.Infinite '


Ext.define (' TouchStyle.view.ProductsList ', {

Extend: ' Ext.carousel.Infinite ',

Xtype: ' Productslist ',

Requires: [' TouchStyle.view.Products '],


Config: {

Direction: ' Horizontal ',


Inneritemconfig: {

Xclass: ' TouchStyle.view.Products '

},


Count: ' Auto ',


OFFSETLIMIT:50,


Store:null,


Animation: {

duration:650

},


Listeners: {

Activeitemchange: ' Onactiveitemchange ',

Itemindexchange: ' Onitemindexchange '

}

},

Sencha Touch App Example-oreilly app Analytics

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.