KICKSTART EXTJS
SHAKTI SHRESTHA
shakti.shrestha@gmail.com
ABOUT ME
I work at Miracle Interface as Chief
Technical Officer (CTO).
 Software Architect
 Focus on delivering applications with good
performance
ABOUT ME
A certified OCP in oracle 10g.
a Programmer by heart.
Also involved with ASPNETCOMMUNITY
AGENDAS
 What’s trending in javascript?
 What is Ext JS
 Why & When Ext JS?
 Ext JS : Let’s Kick & Start
 Demo
What’s trending in javscript?
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
What’s trending
 Decouple data from UI or view(DOM)
 Code Management
 Callback Management (Events)
 Data & UI can be updated.
 Action & application status
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
What’s trending….
 Model View Controller
 Model/Collection
 Views/Templates
 Controller/Router
LIBRARIES & FRAMEWORKS…
 JS frameworks/libraries
 BackboneJs
 AngularJs
 CanJs
 EmberJs
 MeteorJs
 ExtJs
What is Ext JS?
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.
ABOUT EXT JS
 Developed & Maintained by sencha
 http://www.sencha.com/
 License
 Commercial
 GPL (Only for open source projects)
ABOUT EXT JS
 Download location
 http://www.sencha.com/products/extjs/details
EXTJS FEATURES
 Support for HTML 5
 Object-Oriented flavor
 Rich UI controls
 MVC architecture
 Awesome Documentation
 Moving to the mobile version
FEATURES…
Why & When Ext JS?
WHY & WHEN EXT JS?
 It includes a comprehensive library of JavaScript-
based classes
 UI components
 UI layouts
 Collections
 Networking
 Packaging tool (JS & CSS Compiler)
 and more..
WHY & WHEN EXT JS?
 Cross browser support
 Safari 6+,Firefox,IE 8+,Chrome,Opera 12+,Safari / iOS
6+,Chrome / Android 4.1+,IE 10+ / Win 8
 Ext JS 4.x supports (ie6+)
 Ext JS 5.x supports (ie8+)
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
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
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)
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
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
Ext JS : Let’s Kick & Start
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
HELLO WORLD!!
HELLO WORLD!!
COMPONENTS
The Component Hierarchy
COMPONETS
Define childs
Parents & adding
childs
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
DATA PACKAGE
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.
LAYOUTS AND CONTAINERS
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
MORE…
 Draw Package
 Events
 Drag and Drop
 Sencha cmd
 Templates
MORE…
 MVC
 MVVM
Demo
Some Important links
 http://www.sencha.com
 http://docs.sencha.com/extjs/5.0/index.html
 http://docs.sencha.com/extjs/4.2.1/
 http://forum.sencha.com/
Questions
Thank you. 
THANK YOU 

Kickstart sencha extjs

  • 1.
  • 2.
    ABOUT ME I workat Miracle Interface as Chief Technical Officer (CTO).  Software Architect  Focus on delivering applications with good performance
  • 3.
    ABOUT ME A certifiedOCP in oracle 10g. a Programmer by heart. Also involved with ASPNETCOMMUNITY
  • 4.
    AGENDAS  What’s trendingin javascript?  What is Ext JS  Why & When Ext JS?  Ext JS : Let’s Kick & Start  Demo
  • 5.
  • 6.
    What’s trending  SinglePage 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  Decoupledata from UI or view(DOM)  Code Management  Callback Management (Events)  Data & UI can be updated.  Action & application status
  • 8.
    What’s trending….  ObjectOriented Programming  Abstraction  abstraction is the process of separating ideas from specific instances of those ideas at work. Wikipedia  Inheritance  Encapsulation
  • 9.
    What’s trending….  ModelView Controller  Model/Collection  Views/Templates  Controller/Router
  • 10.
    LIBRARIES & FRAMEWORKS… JS frameworks/libraries  BackboneJs  AngularJs  CanJs  EmberJs  MeteorJs  ExtJs
  • 11.
  • 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  Supportfor HTML 5  Object-Oriented flavor  Rich UI controls  MVC architecture  Awesome Documentation  Moving to the mobile version
  • 16.
  • 17.
    Why & WhenExt JS?
  • 18.
    WHY & WHENEXT JS?  It includes a comprehensive library of JavaScript- based classes  UI components  UI layouts  Collections  Networking  Packaging tool (JS & CSS Compiler)  and more..
  • 19.
    WHY & WHENEXT JS?  Cross browser support  Safari 6+,Firefox,IE 8+,Chrome,Opera 12+,Safari / iOS 6+,Chrome / Android 4.1+,IE 10+ / Win 8  Ext JS 4.x supports (ie6+)  Ext JS 5.x supports (ie8+)
  • 20.
    WHY & WHENEXT JS?  Powerful build command  Sencha command  http://www.sencha.com/products/sencha-cmd/  Packaging  (Single application or break into multiple)  CSS minimize
  • 21.
    WHY & WHENEXT 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 & WHENEXT 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 & WHENEXT 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 & WHENEXT 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
  • 25.
    Ext JS :Let’s Kick & Start
  • 26.
    HELLO WORLD!! Lets createfirst app in Extjs References the JavaScript and CSS files from our CDN as shown below: Reference to script that start the application
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
    DATA PACKAGE  Thedata 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
  • 32.
  • 33.
    LAYOUTS AND CONTAINERS Thelayout system is one of the most powerful parts of Ext JS. It handles the sizing and positioning of every Component in your application.
  • 34.
  • 35.
    MORE…  Localization inExt JS  Memory Management  Right-to-Left Support in Ext JS  Tablet and Touch-Screen Support in Ext JS 5  Theming Ext JS
  • 36.
    MORE…  Draw Package Events  Drag and Drop  Sencha cmd  Templates
  • 37.
  • 38.
  • 39.
    Some Important links http://www.sencha.com  http://docs.sencha.com/extjs/5.0/index.html  http://docs.sencha.com/extjs/4.2.1/  http://forum.sencha.com/
  • 40.
  • 41.

Editor's Notes

  • #16 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.