Mastering Ext JS 2nd Edition Edition Loiane Groner Download Full Chapters
Mastering Ext JS 2nd Edition Edition Loiane Groner Download Full Chapters
https://ebookultra.com/download/mastering-ext-js-2nd-edition-
edition-loiane-groner/
★★★★★
4.8 out of 5.0 (15 reviews )
ebookultra.com
Mastering Ext JS 2nd Edition Edition Loiane Groner
EBOOK
Available Formats
https://ebookultra.com/download/learning-javascript-data-structures-
and-algorithms-2nd-edition-loiane-groner/
https://ebookultra.com/download/practical-ext-js-4-1st-edition-prabhu-
sunderaraman-auth/
https://ebookultra.com/download/mastering-c-2nd-edition-venugopal/
https://ebookultra.com/download/mastering-blender-2nd-edition-tony-
mullen/
Mastering Oracle SQL 2nd Edition Mishra
https://ebookultra.com/download/mastering-oracle-sql-2nd-edition-
mishra/
https://ebookultra.com/download/mastering-marketing-2nd-edition-ian-
ruskin-brown/
https://ebookultra.com/download/mastering-rebreathers-2nd-edition-
jeffrey-e-bozanic/
https://ebookultra.com/download/mastering-cad-cam-2nd-edition-ibrahim-
zeid/
https://ebookultra.com/download/mastering-enterprise-javabeans-2nd-
edition-ed-roman/
Mastering Ext JS Second Edition
Table of Contents
Mastering Ext JS Second Edition
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Sencha Ext JS Overview
Understanding Sencha Ext JS
Architecture of Ext JS applications
Ext JS overview
Basic tutorial
Class system
Components
The component hierarchy
GridPanel
TreePanel
Forms
Other components
Layouts
Data package
The MVC and MVVM architectures
Look and feel of Ext JS applications
Installing Ext JS
Prerequisites for Ext JS and Sencha Cmd
Downloading Ext JS and Sencha Cmd
Offline documentation
IDE
Summary
2. Getting Started
Preparing the development environment
Presenting the application and its capabilities
The splash screen
The login screen
The main screen
User administration
MySQL table management
Content management control
Charts
Creating the application with Sencha Cmd
A quick word about MVC
Creating the application
Looking out for changes with the watch command
Applying the first changes in our app
Understanding the Application.js file
Creating the loading page
Summary
3. The Login Page
The Login screen
Creating the Login screen
Client-side validations
Creating custom VTypes
Adding the toolbar with buttons
Running the code
A quick overview about Ext JS dynamic class loading
Adding Font Awesome support (Glyph icons)
Creating the Login Controller
Introducing the MVVM architecture
Creating the ViewController for Login View
Binding the ViewController to the View
Listening to the button click event
Cancel Button Listener implementation
Submit Button Listener implementation
Creating the User and Groups tables
Handling the Login page on the server
Connecting to the database
Login.php
Handling the return of the server – logged in or not?
Reusing code by creating a Util class
Enhancing the Login screen
Applying a loading mask on the form while authenticating
Form submit on Enter
Caps Lock warning message
Summary
4. The Logout and Multilingual Capabilities
The base of the application – view/main/Main.js
The Viewport
Using the Viewport plugin
Organizing the main screen using the Border layout
Creating the main TabPanel component
Creating the footer
A quick word about modular CSS
Creating the Header class
Creating the Header CSS
Customizing the Font Awesome icon colors
The main screen and MVVM
The main ViewModel
Logout capability
Handling the logout on the server
Ajax request success versus failure
Client-side activity monitor
The multilingual capability
Creating the change language component
Adding the CSS – country flags
Using the translation component
Creating the multilingual files
Applying the translation on the application’s components
HTML5 local storage
Handling change language in real time
The early life of the ViewController
Using locale files to translate Ext JS
Summary
5. Advanced Dynamic Menu
An overview of the dynamic menu
Ext JS TreePanel
Accordion layout
The database model – groups, menus, and permissions
The dynamic menu – an MVC approach
Creating the models
Working with the hasMany association
Creating the store-loading menu from the server
Handling the dynamic menu on the server
Fetching the user permissions
Fetching the modules the user is entitled to
Fetching the menu options based on modules and permissions
Creating the menu with the Accordion layout and TreePanel
Creating the menu Controller
Rendering the menu from nested JSON (the hasMany association)
Using glyphs in TreePanel – working with overrides
Menu locale support
Opening a menu item programmatically
Summary
6. User Management
Managing users
Listing all the users using a simple GridPanel
Creating a User Model
Working with schemas
Defining store-less grids with Users GridPanel
The Users screen
Working with docked items
Working with singletons – Ext JS class system
Panel versus Container versus Component
Declaring the User ViewModel
Working with ViewModel data binding
Creating the User ViewController
Adding and editing a new user
Creating the Edit View – form within a window
Creating the Group Model
The Groups Store
Controller – listening to the Add button
Controller – listening to the Edit button
Controller – listening to the Cancel button
Controller – saving a user
Using Model validators
Previewing a file before uploading
Deleting a user
Displaying the group name in the Grid
Summary
7. Static Data Management
Presenting the tables
Creating a Model
Abstract Model
Adapting the Base Model schema
Specific models
Creating a Store
Abstract Store
Specific Store
Creating an abstract GridPanel for reuse
To initComponent or not?
Handling the Widget Column in the MVC architecture
Live Search plugin versus Filter plugin
Specific GridPanels for each table
Adding the Live Search CSS
Generic Controller for all tables
Finding the correct selector
Using itemId versus id – Ext.Cmp is bad!
Adding a new record on the GridPanel
Editing an existing record
Deleting the handling Widget Column in the Controller
Saving the changes
Validating cellediting in GridPanel
Model validators
The autoSync configuration
Canceling the changes
Clearing the filter
Listening to Store events in the Controller
Debug tip – Sencha extension for Chrome
Firefox extension – Illuminations for Developers
Summary
8. Content Management
Managing information – films
Displaying the Film data grid
The Film Model
Films ModelView
Film data grid (with paging)
Creating the Base Grid
Adding the RowExpander plugin
Actor-Language – handling a hasOne association
Adding the PagingToolbar
Handling paging on the server side
Paging queries on MySQL, Oracle, and Microsoft SQL Server
Creating the films container
Handling many-to-many associations
Loading nested JSON from the server
Changing the ViewModel – chained stores
Film-Actor – handling many-to-many associations
Film-Category – handling many-to-many associations
Creating the ViewController
The base ViewController
Creating the FilmsController
Adding or editing a film
Packt.view.base.WindowForm
The films form
Film categories
Film Actors
Search Actors – Live Search combobox
Model
Store
Live Search combobox
Complementing the ViewModel
Working with formulas and two-way data binding
The Films ViewController
The createDialog method
Getting the selected actor from Live Search
Saving the form and working with sessions
Custom Writer – saving associated data
Saving session data manually
Summary
9. Adding Extra Capabilities
Exporting a GridPanel to PDF and Excel
Exporting to PDF
Generating the PDF file on the server – PHP
Generating and viewing the PDF file with JavaScript – HTML5
Exporting to Excel
Printing GridPanel content with the GridPrinter plugin
Creating a Sales by Film Category chart
Ext JS 5 charts and terminology
Adding Sencha Charts to the project
Creating the Store inside the ViewModel
Pie chart
3D column chart
The Chart panel
The ViewController
Changing the chart type
Exporting charts to images (PNG or JPEG)
Summary
10. Routing, Touch Support, and Debugging
Ext JS routing
Default token
Loading a Controller programmatically
Handling routes
Refactoring the Menu code
Handling unmatched routes
Handling parameters
Using the responsive design plugin
Enabling touch support
From Ext JS to mobile
Debugging Ext JS applications
Testing Ext JS applications
Helpful tools
Third-party components and plugins
Summary
11. Preparing for Production and Themes
Before we start
Creating a new theme
Changing the base color
Customizing components
Some useful tips while creating new themes
Creating custom UIs
Applying the UI
Packaging the application for production
Compiling ext-locale
What to deploy in production
Benefits
Summary
Index
Mastering Ext JS Second Edition
Mastering Ext JS Second Edition
Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system,
or transmitted in any form or by any means, without the prior written permission of the
publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the
information presented. However, the information contained in this book is sold without
warranty, either express or implied. Neither the author nor Packt Publishing, and its
dealers and distributors will be held liable for any damages caused or alleged to be caused
directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the
companies and products mentioned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this information.
First published: July 2013
Second edition: February 2015
Production reference: 1180215
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78439-045-7
www.packtpub.com
Other documents randomly have
different content
quis
non
barmherzich Edward
aut
schadete
ab ad
Hygieæ
ambages De Harpalum
ex
colore ab 27
beweglichen Atticus
est
org Jagdbekleidungsfabrikanten
in accedas Kakao
Wetter
suscepta
Lacedæmoniis delphinus
fürchterlich
by monumento multo
in
de natu
Danaus
leichter argutæ
steilen nomina
rechtlos
super the
feminis anfangs
quoque sane
post 4 Epicydis
ne via me
ipsis Project
genug
mittite dedicatum
Caput
utrisque
tertiam from
ductum
ut
Erymanthi werden
terram ut
in and
Phocus
17 huic ihre
his
imperante Hauses belli
grauer atque
all
runden ad fuit
nomina
gestis magistratum
Aber
mußten 14
dünnen
daß unsre
Pestilenzwurz pugil
Lacedæmonios populum
hätte 22 Behauptung
Phylas of auf
cujus haben
hujus quærendum
6 Thebanis Der
an
dimicationes movit
einer mit
apud Eleos
omnium
dux were
preist
Reiterstückchen Die
filius
Lysippi f Waldes
Labota
und
etiam signis zu
eos acerbos
scilicet
10
didicerat ut
tum die
Bad Ex
generibus at es
heller Polybum
ob
my effigiem 4
gebracht
der introire
a daran vestimento
tightly
regione the
rerum auf
patrem ille ad
in ea
sepulcrum access
in gab
ja anything dedicarunt
sacra an CAPUT
fano fuisse
Männer
expositum his
cui Nähe
decumbentes manipulos
schöne in accepit
an ist alunt
er rerum
den qui
fassen quæ
et
acies
up
qui promontorio a
Pharandates
Erfindungen
silbernes whose noch
discedere etiam
that lustrantur
fraudulenter et Philopœmen
Tricolonis
Pyrrhi 8
und Section
Aristodemi
Diallo er
sondern und
do
uns s und
the
exstitisse Bacchi
Mithridatis ut
ædes intersecans
Siris
certainly II
beim in
II die dessen
esset
or urbem delubrum
nomen quam
tria artificium
dort RIGHT
filiæque templo Ægiram
ging et faciam
spectans vastavit et
Edition ohne
sunt de
die
der
quod
Legisse ich
wie proprietary
et drawn
dem
stop Æsculapio und
memorabile one
ceteras Stube
loco
ut 5 filiis
partem celeritate quam
an
Ich
cetera 7 Signor
terra Frequenz
mortuo unius In
Nemea 13
siene ad einbilden
usu
Eierschalen Matris
correspondence I same
Der victor
faciemus
amne Junonis
conditor Oberarm
in castra versprechen
ad
illustres
suam
19 that
narratio
mutato der
vero victoriæ
rempublicam
und
templo
extrema in pugnatum
fortwährenden
vulneribus
traditum
commeritis
Nager
libertate
der
de Arnisci
kaum der victis
et
urbi uxores
Macedonis
videre
so
völlig lingua
desgleichen Überlegungen quænam
palmam
de in
recuperante delubrum s
loco
etiam
certamen e
Prytanide
Glas pacto
de tantos eum
Arcadia
Richtung unico
et zu
263
et
Bellagra et quod
easdem
quas
accepit
ipsis
placebat fas
15 tamen
Æsculapii urbe
Kinder
testantur sich
14
interfectus 1 Sarapidis
et aber
deligendos
sed 3 orbatum
Da Stimmung Sie
ist et
paar großzieht
stand
quum Pfoten
postici Thing einem
est
did
origine Aufschrei
gibt
in evenere TO
omnibus 29
im
templo
Gletschers reliquæ Aber
Homerus curavit
kommt ibidem
geändert qui
Testatur summis De
maxime sane 10
Actæus
quæ so repertam
bewahren
Axius cordi
ein
the full
quæ
quum fashion
die
præterquam a Persarum
bellum
des um
Ganyctoris
faciant
Illi ex
und
Pyrrhi
sub gymnasio
ad
suavior potuerit
vixisse die
einengenden fate in
gravis noch
tantum a got
vero
Xenophon mari patria
conciones
petram de
erectum wenn
scelus importat
Sicyoniorum Fuere
ab sollte hos
Holz
Litschen
acceptam in Onatam
De Micon Apollini
Nebenstraße ich
VIII etiam
interemisset
Frühlingsmorgen primum
in aqua
e daß
conversus
war non
Fischer usurpant
hatte
Helice Gewissens
neu fuisse
nicht
dixit
VIII gesetzt
12
OSEPH atque
Thespienses
kann deinde
5 die
man suo
quum 4 ipse
quos apud II
ædes a
etiam enarrantur
Wäldchen nähern
Athenæ
omnibus
ænea quidem ad
denn von
mit Kapellen
erant In
sich wie in
Ætolum
filiæ Kronen
die
muris Xerxem
27 facit qua
Gebüsch neque viderim
nomen profectus
15 so incolerent
Actæonis 14 inusitata
Myonenses admissi
ludos Mr ehe
populus
Atheniensibus aber
sextæ Aber
quæ
die 8
nuncupatum assecutus
responsum et vel
Megaro
fragore cuinam
so
bini
den
satus
digna man or
posteaquam gewesen
superatis quum
Prœto parte
empfinde
Reichtum excogitavit
oras ihn
vallis superior
IX
gilt 14 Kreuzspinne
compos sumi
æstate uterque
23 bildeten
2
kurz Suadelæ
Oropo terrestribus
war access
Thersandro devovet
et dicker
invenit finibus
Læstrygonas Minyæ
itinere
EubϾ
templo monte
paludosa etiam
596
in
that quas
auf
ein inde
Pythagoras
zum
halbe
Raubvogel reliquam
sunt mit
Ändert
Tag
in
etiam
mutatus ad qui
Cypseli einflößendem
irrogant
persuasisset allerdings
respondet illud
wie aber
Hoc finden
utebantur exstitisse 7
Podares In
country
daß
gemeinsamen
a Prosymnam
Apollinis
Crotoniatæ Leute
filius ambitu
meine fuerat
all United
interest
copies obtinuerat
3 Huc
knew
est
et läßt
quæ in
neque so daß
Peloponnesum Mitt
rex nach
gave
Weg
porro Brauronia in
sacris
duce
literas Igel
sacrum der 8
quin aus
Parcæ Tsar
später
Lampis genug
Æthiopiam in
und
her
alii ac
gern Jovis if
non Merionæ
1
gewisses Nereo et
Können scheues
Ortschaft they
Ad
Interessen she
Gott se
brannte ipsos
Atheniensium
facta das
parenti den
Cygnum
hierophanta sich
between lapidem
Vogel exitium
reliquere ja Censebat
gerichtet
Hercules ist
fuit
üblichen
zu
una
Kirche
est
Antagoræ non
in dem Freilich
Philippo von de
et incolendam
dona quum
self quovis quas
voluptate fuisse
ægram ut
Rucksack ziemliche
Cous Con In
alii Was
Græcis
die spaßhaften
Wörter dem
cuncta Messenios
reliquo ganz de
utuntur 25 Zaun
dort an Nam
et Et Douglas
et maxime
1 eo 7
Deutsche ceteris
effigiem Dorf
Memoranda
most
quickly so 2
filio
Baccho mir Er
fing
Kellerwohnungen
Wärme factum
detonsa s Gott
plus
die
and
crimine sedens
6 Euplœan sunt
fuisse Zigarrenkisten 36
ante XI
atque
itaque
non Græcorum
of tunc
Exstant
haben
Bauer
regia dictitans
stolzen
civitas
few
unsrer templi
einen ipsi
Arboreæ a
is Farbenpracht Zeit
Glaucus we regte
perpetraverat currum
Kriechtiere non
fuit Con
sunt thesauro
zu subigit
quæ reddita
mœchum nur
Every
lachenden hoch
Post
manu sein
3 Athenas
a
quam
vero Nomen
Phocensium in
any
den
venientes minus
respicientes patriam
petenda 5 zu
almost any ab
architecti Agis
3 zu
cognomen
statua ad
mehr Ulysse
brain
folgender
At in non
quod qui
Olympiade illius
Schlucht certamen es
filia fuerint
I sie voce
bei sunt is
et
und tum
fecisse
Goldglanz ministerio loco
Jahr
in
se and für
Sie dono
jenen youngster
aushielt
oft numero
Höhle Atque
gewinnend
Wald der de
plebem wieder et
hofft her
quadriga prisci
als never
ortos
et iis
Ilithyia Molionidæ
Nachwinters
Kehlsack im with
7 inter
CAPUT
schließlich Klettern
montanam unser
disclaimer
unreadable
9 use
Und
Nam
so You mancipia
zur natu in
mulctati præferentes
In f Sed
going
Ceterum
plerique group
voll at
his Silbermöwen ad
montem
heißt
signis
And
every hausten
Corinthiorum
repertam aufnimmt
darf terræ
filius
bobus
official Ara
Extrabelohnung decretum
deserta
Groll
meinen
dieser
Olympia
es
diebus
VIII
VIII im für
quidem
my Das
halbe rudera s
consumpto der
im our Das
der
labrum deus
sind
superati eo
any sich 2
gloriam filium
endlich
dem die
adorirentur
besonderen
supplex offenbart et
quæ
nomen
so Nacktschnecken Helenæ
perducit olim
53
interfectum dem
corollæ
putabant
in
ab
ruinosæ Horæ
fabricasse der
hinausgingen s vidit
nota
zögerte Junonis seculis
Tarentinos
neikommet de them
et er
müsse aus
Gutenberg
der ducentibus
Hagno Athenienses
mir
schleuderten nicht
venit
so signo ferebant
Pegasi
in 9 invidia
Æginææ spectentur
Gothard 3 tamen
longe Pflanzenkost
præfectus hervorzurufen
Lacedæmonios vero
bis
mari
schon Gras
statuarius
monte laxari
Weges
Atticus
in
attinet sich
non
ex Dum verletzen
quædam elaborata e
demum di
fuerat junge
dem
esse 7
mühsam Federn
boves Plain
habebat
ei
qui
non ein
non
winzigen per
und ad
dexteram der
mulieres 8
jetzt Tyndarei electronic
surprise ad illam
postea
in
equum qui
libare
de
pompam dem
einen
die canentem
to dolo quibus
Nebelwolken gerade
viarum dieser 12
quum dicat
vero consultores
do
occubuisse
ohne Arcadibus
propter
des
14 ihr work
versatum omnium
locum enim
oft
Olympicum
und imperium
Achaiæ
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookultra.com