Book Image

Ext JS 4 First Look

By : Loiane Groner
Book Image

Ext JS 4 First Look

By: Loiane Groner

Overview of this book

<p>Ext JS 4 is a JavaScript framework that provides resources to build Rich Internet Applications with great performance. Ext JS 4 has been packed with many new features and it is difficult to master, even for seasoned experts in Ext JS 3.<br /><br />Ext JS 4 First Look teaches you the main functional areas of Ext JS 4 that have significant new features, explains the new features and how to use them, while highlighting the differences between Ext JS 4 and the previous versions.<br /><br />This book will give you the knowledge to make the required changes to Ext JS 3 application to build a complete Ext JS 4 application.<br /><br />This book provides examples of how to load Ext JS components by demand, charts, grid, tree, forms and panels, new data model, themes and mvc architecture.<br /><br />Ext JS 4 First Look provides full examples and illustrations to help you easily learn the new features of Ext JS 4.</p>
Table of Contents (14 chapters)

Getting started with Ext JS 4 themes


If you have already tried to customize an Ext JS 3 theme, you know that it was a complicated task— and a bit annoying, too. You had to open Firebug, inspect every single element, go to the CSS file, and then change it to a new color/background, and so on. Some Components of Ext JS 3 were composed of some images, such as the Button Component. If we wanted to change the button color, we had to create new images and then apply them to the Ext JS 3 button.

All of these complications are no longer present in Ext JS 4. Version 4 introduces a new way to customize and create new themes, using CSS3 features.

Ext JS 4 uses Sass and Compass to create themes. If you take a look at the Ext JS 4 resources folder, you will see that there are folders and files that will help us to create and customize a theme (Ext JS 3 does not contain these files):