Book Image

Ext JS 4 Plugin and Extension Development

By : Abdullah Al Mohammad
Book Image

Ext JS 4 Plugin and Extension Development

By: Abdullah Al Mohammad

Overview of this book

Ext JS is a pure JavaScript application framework for building interactive web applications using techniques such as Ajax, DHTML, and DOM scripting. Ext JS 4 Plugin and Extension Development is a practical, step-by-step tutorial which guides you to learn and develop ExtJS plugins and extensions. There are a lot of examples with explanations and plenty of code provided to make it easier and quicker to pick up. Starting with the fundamentals, this book introduces some of the ExtJS library and community provided plugins and extensions and finishes with several hands-on, real world development examples. You will get a clear concept of ExtJS plugins and extensions and learn how to use them. You will also learn how to develop an ExtJS plugin and extension by going through several examples with code and screenshots. Ext JS 4 Plugin and Extension Development book will provide you with the knowledge to develop ExtJS plugins and extensions using real-life examples.
Table of Contents (16 chapters)
Ext JS 4 Plugin and Extension Development
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

The TitleChart extension


This class is an extension for Ext.chart.Chart that implements a titled chart, which was developed by Alexander Tokarev. By using this extension we can easily configure our chart title.

Following is the screenshot of a chart where the TitleChart extension is used:

The available configuration options are:

  • titleLocation: left, right, top or bottom. The title text will be rotated accordingly when location is right or left.

  • titleFont: The font properties for chart title, in CSS format.

  • titlePadding: The space between chart canvas edge and title, in pixels.

  • titleMargin: The space between title and actual chart area.

A live demo for this extension is located at . This extension is licensed under GPLv3. The download link, details of the copyright, and license for this extension are available at https://github.com/nohuhu/Ext.ux.chart.TitleChart.