28
Power Of ExtJs By Kartikeya Madeshia

A Presentation on ExtJS by Kartikeya

Embed Size (px)

Citation preview

Page 1: A Presentation on ExtJS by Kartikeya

Power Of ExtJs By Kartikeya Madeshia

Page 2: A Presentation on ExtJS by Kartikeya

What is ExtJs● ExtJS is a javascript framework (client-side)

that enables developers to develop Rich Internet Application (RIA) (static websites or data-driven applications) with a plethora of options.

● ExtJS has a huge collection of controls (ranging from textboxes to highly sophisticated UI Controls).

Page 3: A Presentation on ExtJS by Kartikeya

ExtJs History ● Started as extension to Yahoo's YUI!

Framework in 2006 – YUI-Ext !● By the end of the year, the library had gained so

much in popularity that the name was changed simply to Ext, a reflection of its maturity and independence as a framework.

● A company was formed in early 2007, and Ext is now dual-licensed under the GPL v3 and a proprietary license.

Page 4: A Presentation on ExtJS by Kartikeya
Page 5: A Presentation on ExtJS by Kartikeya

Why ExtJs ?

● Most Developers don't like to design● HTML isn’t pretty● HTML isn’t functional● ExtJs is the largest consistent library of

extended components in a single package● ExtJs is “baked in” to ColdFusion

Page 6: A Presentation on ExtJS by Kartikeya

Features of ExtJs

● Ext is cross-browser compatible.● Ext has a complete set of widgets.● Ext looks great and it feels good.● Ext is very well documented.● Ext can be used both under a free and a

commercial license.

Page 7: A Presentation on ExtJS by Kartikeya

Cross Browser

Page 8: A Presentation on ExtJS by Kartikeya

Windows looks like OS windows – support dragging/resizing/closing

Page 9: A Presentation on ExtJS by Kartikeya

Good Documentation

Page 10: A Presentation on ExtJS by Kartikeya

How do we begin?● Download the latest copy of ExtJS from

http://www.sencha.com/products/extjs/download/● Unzip using any file compression utility

(Winzip / WinRAR).● It is strongly recommended that you create a

virtual directory for the unzipped folder (since certain examples work only if accessed via website / virtual directory).

Page 11: A Presentation on ExtJS by Kartikeya

Walking the first step…● Add the ExtJS folder

(ext-3.4.0) within the project folder.

Page 12: A Presentation on ExtJS by Kartikeya

Files to be linked● Add links to all the

highlighted files. These files are very much important to set-up the ground work for our application.

● Next add your custom files.● Example (in index.cfm): ● <link rel="stylesheet" type="text/css" href="ext-

3.4.0/resources/css/ext-all.css" />

● <script type="text/javascript" src="ext-3.4.0/adapter/ext/ext-base.js"></script>

● <script type="text/javascript" src="ext-3.4.0/ext-all.js"></script>

● <script type="text/javascript" src="js/global.js"></script>

Page 13: A Presentation on ExtJS by Kartikeya

Explaining the files to be linked ..

● ext-base.js: This file is the driving engine of Ext. This file is very important & cannot be skipped.

● ext-all.js: This file contains all the defined UI elements (like textbox, combo, button, grid etc…).

● ext-all.css: Responsible for the default blue theme of ExtJS.

Page 14: A Presentation on ExtJS by Kartikeya

What Do We Know?• Data In Most applications require some form of data entry

• Data Out Most applications require us to display that data in an easy and logical format

Page 15: A Presentation on ExtJS by Kartikeya

Data In• Create rich dynamic form interfaces for taking in data.• Apply client-side validation process and logic.

Page 16: A Presentation on ExtJS by Kartikeya

Data Out● Rich component architecture● Tools to create new and inventive

displays

Page 17: A Presentation on ExtJS by Kartikeya

Layout Controls● Layouts● Tabs● Accordians● Windows● Panels● Message Boxes● Templates

Page 18: A Presentation on ExtJS by Kartikeya

Sample Layouts

Page 19: A Presentation on ExtJS by Kartikeya

Sample Containers● Most all common paradigms

Windows, Panels, Tabs, Accordion

Page 20: A Presentation on ExtJS by Kartikeya

Message Boxes

Page 21: A Presentation on ExtJS by Kartikeya

Data Views

• Grids – Basic

– Editable

– Property

– Paging

– Grouping

• Forms• Charts• Trees

Page 22: A Presentation on ExtJS by Kartikeya

Sample Grid● Feature rich grid class

- Sorting- Column hiding- In-cell editing- Customer rendering / formatting- Plug-ins (grouping, summaries, expands)

Page 23: A Presentation on ExtJS by Kartikeya

Sample Grid (cont..)

Page 24: A Presentation on ExtJS by Kartikeya

Sample forms● Rich forms support

-Excellent validation support

Page 25: A Presentation on ExtJS by Kartikeya
Page 26: A Presentation on ExtJS by Kartikeya

Data

• Readers– Local or Remote Data

• JavaScript Array

• JSON

• XML

• Writers (to server) – JSON

– XML

• Stores Local storage of records, with built in facility for client-side manipulation and

server-side communication

Page 27: A Presentation on ExtJS by Kartikeya

Pizzazz● Ajax● Effects● Drag & Drop● History● Utilities

Page 28: A Presentation on ExtJS by Kartikeya

Thank You..

Questions..