ArticleslgStudy

science

Ext JS

Ext JS is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Ext JS rather than just read about it. In short: Ext JS is a JavaScript application framework for building interactive cross-platform web applications using techniques such as Ajax, DHTML and DOM scripting. It can be used as a simple component framework (for example, to create dynamic grids on otherwise static pages) but also as a full framework for building single-page applications (SPAs).

Ext JS — main illustration
Ext JS — illustration

Key takeaways

  • Ext JS belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Ext JS to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Ext JS from memory before moving on to harder problems.

Reference excerpt

Ext JS is a JavaScript application framework for building interactive cross-platform web applications using techniques such as Ajax, DHTML and DOM scripting. It can be used as a simple component framework (for example, to create dynamic grids on otherwise static pages) but also as a full framework for building single-page applications (SPAs). Originally built as an add-on library extension of YUI by Jack Slocum on April 15, 2007, Ext JS has had no dependencies on external libraries beginning with version 1.1. Nowadays, Ext JS can be used both as a single script (with all classes and components in one file) or by building the application with the Sencha CMD.

Features

GUI controls (components) Ext JS includes a set of GUI-based form controls (or "widgets") for use within web applications:

text field and textarea input controls date fields with a pop-up date-picker numeric fields list box and combo boxes radio and checkbox controls html editor control grid control (with both read-only and edit modes, sortable data, lockable and draggable columns, and a variety of other features) tree control tab panels toolbars desktop application-style menus region panels to allow a form to be divided into multiple sub-sections sliders vector graphics charts

Themes and toolkits Sencha also provides some themes to style the components. Changing a theme requires simply changing CSS and a script of the theme. When using Sencha CMD a re-build of the application might be required. All components should work with each theme, but their look&feel will change. For example Classic theme has rather small elements not suited for touch devices. Neptune Touch has bigger elements better suited for tablets and phones. Ext JS comes in two flavours called modern and classic toolkit. They differ not only with available themes but there are also some API differences between them. So it is not as easy to migrate from one toolkit to the other as it is for themes. There are plans to even out some differences between the toolkits in Ext JS 7.1, which is planned for 2019.

Programming toolkit Ext JS is a composition of classes that has many capabilities. Some examples:

an abstract layer for browsers (e.g. Ext.isArray that can be used as a replacement for Array.isArray) state management (stores) server communication layer (proxies and Ext.Ajax.request) layout and window management event management (with simplified creation of custom events for custom components) routing

Class system Ext JS has its own class system. Classes are defined with Ext.define and then an instance can be created with Ext.create. Some classes (e.g. components and stores) can have aliases and can be created by an alias. Instances of components are created automatically when the parent component is created. Class can extend both custom and built-in classes. Typically custom components would extend built in components (e.g. MyApp.views.ProductsTable would extend built-in Ext.grid.Panel). There is a built-in dynamic loader so classes can have dynamic dependencies (loaded on-demand). There are two types of dependencies in ExtJS. Dependencies declared with requires property are loaded before the instance of the class is created. Dependencies defined in uses property might be loaded after the instance of the class is created. It is also possible to override classes. Even built-in classes. Overriding built-in classes might be useful to e.g. provide internationalization or create patches. Overridden class gets merged with new declaration. Each class can be overridden as many times as required (e.g. providing i18n and then l10n).

Ext JS version history

Ext JS 2.0 Ext JS version 2.0 was released on 4 December 2007. This version was promoted as providing an interface and features more similar to those traditionally associated with desktop applications. Also promoted were the new user documentation, API documentation, and samples. Ext JS 2.0 did not provide a backward compatibility with version 1.1. A migration guide was developed to address this.

Ext JS 3.0 Ext JS version 3.0 was released on 6 July 2009. This version added communication support for REST and a new Ext.Direct server side platform. New flash charting and ListView elements were added to the standard display components. It was backwards compatible with version 2.0 code.

Ext JS 4.0 Version 4.0 of the Ext framework was released on April 26, 2011. It includes a completely revised class structure, a revised data package, an animation and drawing package that uses SVG and VML, and revised charting and theming. It also includes an optional architecture that provides a model–view–controller (MVC) style of code organization.

Ext JS 5.0 Version 5.0 of the Ext JS framework was released on June 2, 2014. It includes the ability to build desktop apps on touch-enabled devices—using a single code base, a Model View ViewModel (MVVM) architecture, two-way data binding, responsive layouts, and other component upgrades with support for adding widgets inside a grid cell for data visualization and big data analytics. Ext JS 5 also includes an upgraded touch-optimized charting package along with additional financial charting capabilities. Ext JS 5 supports modern and legacy browsers including: Safari 6+, Firefox, IE8+, Chrome, and Opera 12+. On the mobile platform, Ext JS 5 supports Safari on iOS 6 and 7, Chrome on Android 4.1+, and Windows 8 touch-screen devices (such as Surface and touch-screen laptops) running IE10+. Important: From the Ext JS 5 version you cannot buy license for fewer than 5 developers.

Ext JS 6.0 Version 6.0 of the Ext JS framework was released on July 1, 2015. It merges the Sencha Touch (mobile) framework into Ext JS.

Ext JS 7.0 Version 7.0 of Ext JS framework was released on August 29, 2019. This version introduced several new components in the Modern Toolkit. The Classic Toolkit received the Material Design Theme.

Sencha On 15-Jun-2010, the merge of Ext JS with JQTouch and Raphaël was announced forming a new organisation called Sencha Inc. Ext JS continues to be available as a main product on the new Sencha website together with Sencha Touch, Sencha GWT (now Sencha GXT), Sencha Architect, Sencha Animator and Ext core. On 23-Aug-2017, Sencha was acquired by IDERA (which in turn owns Embarcadero Technologies). Embarcadero is known for acquisitions of rapid application development software such as Delphi (which relies on Object Pascal as its primary programming language).

… excerpt ends here. Continue reading the full article.

Illustrations

Ext JS illustration

Worked examples

Example 1 — a first encounter with Ext JS

Start with the simplest possible case. Write down what Ext JS claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Ext JS before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Ext JS ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Ext JS

In research
Ext JS appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Ext JS in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Ext JS is common in secondary-school and first-year university syllabi. It links to neighbouring topics Ajax (programming), JavaScript libraries, Web frameworks, so understanding it makes those chapters shorter.
In everyday life
Look for Ext JS outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Ext JS” →

How to study Ext JS in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Ext JS means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Ext JS out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Ext JS in simple terms?

Ext JS is a JavaScript application framework for building interactive cross-platform web applications using techniques such as Ajax, DHTML and DOM scripting. It can be used as a simple component framework (for example, to create dynamic grids on otherwise static pages) but also as a full framework…

Why does Ext JS matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Ext JS?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Ext JS.

Tags

  • Ajax (programming)
  • JavaScript libraries
  • Web frameworks

Keep exploring