Use of ExtJS 6.x

Source: Internet
Author: User

ExtJS may use a lot of people, but ExtJS 6.X is much less, at the time of contact with a lot of pits, here probably tidy up.
Two official websites on the line
Document API Address: http://docs.sencha.com/extjs/6.2.0/
Official website: https://www.sencha.com/extjs/6.2.0/
ExtJS two parts One is the classical one is the modern the former is the PC the latter is the mobile end,
Here's the first classical.
When the program loads, it executes the entire program's global file App.js, followed by the classical configuration file application


So some of the things that need to be declared globally can be written here, because I'm using websocket here, so I've defined a global object directly in application, and ExtJS 6.x uses the MVC pattern View definition is simple

The corresponding controller

There are two ways to write controls, one is to take advantage of initialization, so you can add a lot of your own logic

The other is to write directly

This will load both the control and the layout as the file loads. To dynamically generate controls inside a controller just create, take a window frame for example

There are many ways to assign a value to a control in a way that is declared good one store and then called in the desired control.

Of course there is a lot of knowledge, look at the official documents (although English) will be. Get over here first!

Use of ExtJS 6.x

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.