2. ABOUT ME
I work at Miracle Interface as Chief
Technical Officer (CTO).
Software Architect
Focus on delivering applications with good
performance
3. ABOUT ME
A certified OCP in oracle 10g.
a Programmer by heart.
Also involved with ASPNETCOMMUNITY
4. AGENDAS
What’s trending in javascript?
What is Ext JS
Why & When Ext JS?
Ext JS : Let’s Kick & Start
Demo
6. What’s trending
Single Page application
Single Page Applications (SPA) are built on
expanding reach via the browser, reducing
round tripping, and enhancing User Experience
(UX).
Eg. gmail.com, facebook.com
7. What’s trending
Decouple data from UI or view(DOM)
Code Management
Callback Management (Events)
Data & UI can be updated.
Action & application status
8. What’s trending….
Object Oriented Programming
Abstraction
abstraction is the process of separating ideas from
specific instances of those ideas at work. Wikipedia
Inheritance
Encapsulation
12. ABOUT EXT JS
JavaScript framework
Its MVC structure
Extjs 5.x also includes MVVM feature
Two way binding support
It has very rich set of UI componets.
13. ABOUT EXT JS
Developed & Maintained by sencha
http://www.sencha.com/
License
Commercial
GPL (Only for open source projects)
14. ABOUT EXT JS
Download location
http://www.sencha.com/products/extjs/details
15. EXTJS FEATURES
Support for HTML 5
Object-Oriented flavor
Rich UI controls
MVC architecture
Awesome Documentation
Moving to the mobile version
20. WHY & WHEN EXT JS?
Powerful build command
Sencha command
http://www.sencha.com/products/sencha-cmd/
Packaging
(Single application or break into multiple)
CSS minimize
21. WHY & WHEN EXT JS?
Templating
Can be used when UI components are not able
to fulfill your demand.
Provides initial code layer to jump start MVC
application
22. WHY & WHEN EXT JS?
HTML5 framework but doesn’t require you to
write HTML.
The index file just includes
Ext JS framework link (JS & CSS)
CSS file
app.js (the code that starts the user-application)
23. WHY & WHEN EXT JS?
Ext JS offers a way to write object-oriented
code
Define classes
Inheritance in a way that’s closer to classical
inheritance
Doesn’t require the prototype property
Best for enterprise applications
24. WHY & WHEN EXT JS?
Accessibility
Ext JS 5.0.1 makes it possible to create highly accessible
JavaScript applications by providing the tools that
developers need to achieve Section 508 and ARIA
compliance
About accessibility
Those with disabilities, especially the visually impaired
Those who rely on assistive technologies, such as screen
readers, to use a computer
Those who cannot use a mouse to navigate an application
26. HELLO WORLD!!
Lets create first app in Extjs References the JavaScript
and CSS files from our
CDN as shown below:
Reference to script that
start the application
31. DATA PACKAGE
The data package is what loads and saves all
of the data in your application. It consists of a
multitude of classes, but there are three that
are more important than all the others.
Ext.data.Model
Store
Ext.data.proxy.Proxy
33. LAYOUTS AND CONTAINERS
The layout system is one of the most
powerful parts of Ext JS.
It handles the sizing and positioning of
every Component in your application.
35. MORE…
Localization in Ext JS
Memory Management
Right-to-Left Support in Ext JS
Tablet and Touch-Screen Support in Ext JS 5
Theming Ext JS
Support for HTML 5
HTML 5 provides a set of features like a new set of UI tags, multimedia capabilities without depending on third party plugins, data storage facilities, web sockets, web workers, Canvas API for drawing, GeoLocation, and working with history. The Ext JS 4 API supports HTML 5 tags, working with local storage and session storage, drawing, etc.
Object-Oriented flavor
JavaScript has never been taken seriously as a programming language.
Rich UI controls
Ext JS 4 provides a rich set of UI components, like any other JavaScript library. The UI controls include different types of form components, and data components such as grid, tree, and charts.
MVC architecture
Modularity has always been an issue in JavaScript libraries. Maintenance is a nightmare in web applications developed using JavaScript, no matter what framework we use. Ext JS 4’s popularity is the support that it offers for implementing MVC. The complete code can be organized into folders and files following the MVC architecture. Making changes and testing becomes easier because of this.
Awesome Documentation
Sencha maintains very good API documentation for all the versions.
Moving to the mobile version
Using Ext JS 4 in applications has an added advantage if you aim to develop a mobile version too. Sencha provides us with a popular
JavaScript library called Sencha Touch for building mobile web applications. The structure of Sencha Touch API is very similar to Ext JS 4.