[Extjs5 Study Notes] section 37th Extjs6 pre-check edition contains Shenma Xinxi and extjs5extjs6

Source: Internet
Author: User

[Extjs5 Study Notes] section 37th Extjs6 pre-check edition contains Shenma Xinxi and extjs5extjs6

This article is in the public account Article address: public account Article address
Address: http://blog.csdn.net/sushengmiyan/article/details/45190485
[TOC]

In Ext JS 6, you can use a single javascript framework to seamlessly create desktop, tablet, and smartphone-based applications.

ExtJS 6 was released in earlier versions. The new features are as follows:

Combined Ext JS and Sencha Touch Functions
Added the fashion theme feature through Sencha Cmd 6
3D drawing function Enhancement
The default Ext JS grid auxiliary option is "actionable mode ".

ToolKits)

The biggest change in ExtJS 6 is to merge ExtJS and Touch into a single framework. The core of the previous framework (data, controllers, models, etc.) has been integrated into a single public platform. In this way, data and logic can be shared to help developers further optimize their applications.

Things with unique features will be broken down into two very different tool kits: Classic and Modern ). These toolkit are divided by the view layer of ExtJS and Touch. Applications that share core resources and logic and use these two toolkit are called Universal applications.

When using Cmd to generate an application, you need to select the application toolkit. This can be achieved by simply adjusting the app. json of the application, as shown below:

"Toolkit": "classic", // or "modern"

Release

Because the framework is combined into a single entity, the SDK structure has to be reorganized according to the classic, modern, and common regions.


The ext-all.js file still exists in the build folder. And ext-modern.js is equivalent to the use of sencha-touch.js. The two use the same core.

In the current version, the example kitchensink is a so-called general application, a single application that combines the classic and modern generation of configuration.

Package name

The prefixes "ext-" and "sencha-" in different packages have been deleted. These prefixes were originally used to differentiate Sencha Touch, ExtJS, and public libraries. Now, they no longer need this distinction, and all the code is included in ExtJS. This means that "sencha-charts" should now be "charts", while "ext-theme-neptune" is "theme-neptune ".

To upgrade ExtJS 5 to ExtJS 6, you need to adjust the reference name of the package in the app. json file.

Fashion

Fashion is a new SASS compiler released by Sencha for creating application topics. It is written in Javascript and can be run in a browser. With PhantomJS, it is better to use Fashion in Sencha Cmd to create SASS than app watch. This means Ruby is no longer required by the system! Because Fashion runs in a browser, SASS can be built twice (slicer) and minimized ). More importantly, you can use app watch to quickly incrementally reconstruct SASS, which brings tangible benefits to developers.

For app watch, using Fashion has a bigger advantage: online update! Open an application in a modern browser and load the SASS file to replace the generated CSS. Fashion can modify and compile SASS and update CSS without refreshing the page.

If you want to enable the update in Xi'an, you can PlatformTags = fashion: true "is added to the URL.

Because Ruby is no longer used, Compass functionality dependent on Ruby Code cannot be used any more. In this case, you have to use JavaScript to create it. We will soon compile a document on how to write custom JavaScript extensions for Fashion. Some SASS code in Compass has been migrated to Fashion, so not all Compass functions will be applied. In general, if you do not use the custom Compass function, you will not experience the difference.

It is important that online update only works when the page view is running on the Cmd Web server. In ExtJS's classic toolkit, some Sass modifications may require a layout or reload the entire page. This is rare for the modern Toolkit because it is CSS-based and can adapt to positive changes.

Chart

The biggest change in the chart package is in the 3D pie chart, which now supports labels and configurable 3D aspects. You can view these examples in the kitchensink chart.

ItemEdit plug-in


The itemEdit plug-in is another largest and most up-to-date function. It runs a user's drag tag to modify the chart value. You can view the behaviors of the itemEdit plug-in by viewing the sample custom icons of Scatter Chart in the Kitchen Sink.

Renderer for sequence tags, bar codes, and prompt information now supports the ViewController method (declarative rendering ). The Axis label renderer is coming soon.

It is worth noting that ExtJS 6 has abandoned the old ext-charts package. Any use of ext-charts needs to refactor the application to use the sencha-charts package.

Grid workbooks


The workbook model introduced in ExtJS 5.1 now has some amazing new features. Now you can set extensible to true by setting extensible to be scalable. In this way, you can drag the drag angle indicator in the lower right corner to add a selection, to expand the selected content along the vertical or horizontal direction.

This usually combines the selected plug-in to copy the value to the extended area, as expected in a typical workbook.

Actionable Mode and accessibility

The grid also supports the "operable mode" of ARIA, which is an extension of the original cell editing mode. This allows the focus or activation of all types of cell content through the keyboard. This is a huge improvement in accessibility, which allows super users to navigate anywhere in the grid without a mouse.

LazyItems plugin

This plug-in can delay the rendering of sub-components until they are rendered, thus reducing the sub-component instantiation and initialization execution costs.

For example, if deferredRender is set to true in the tag panel, unrendered tags will not be instantiated or initialized for its child components, reducing overhead, rendering is not performed until the tag is activated.

Screen reader support (Accessibility)

The ARIA function has been directly implemented in the life cycle of the component, which means that you no longer need to specify the aria package to obtain the correct ARIA behavior. The application now supports screen readers (similar to JAWS) without specifying references.

Microloader)

Sencha Cmd 6 now includes local storage cache, which is similar to the microloading of Sencha Touch products. However, there are still some important improvements:

Cache can be disabled in app. json

Only content loaded in the microload mode will not be deleted.

Only the current version of the application can be stored locally.

These improvements solve the problems reported by Touch microload. It actively deletes the content stored locally when it exceeds the storage space. This problem often occurs because unnecessary old versions of applications are retained, which makes deleting completely the final choice.

Touch Mesh

The Touch mesh is no longer an independent Cmd package, and is now part of the modern Toolkit by default.

Http://docs.sencha.com/extjs/6.0/whats_new/6.0.0/whats_new.html

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.