Book Image

Learning Ext JS_Fourth Edition

Book Image

Learning Ext JS_Fourth Edition

Overview of this book

Table of Contents (22 chapters)
Learning Ext JS Fourth Edition
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Plugins


The Grid's plugins provide custom/extra functionality for the component.

Overall, plugins in Ext JS don't need to extend another class, but the idea/purpose is to give extra functionality and behavior to existing components.

For the Grid panel, we have some plugins already implemented in the Ext JS library. The most commonly used are Ext.grid.plugin.CellEditing and Ext.grid.plugin.RowEditing.

These two extend Ext.grid.plugin.Editing, and their primary function is to provide the grid with the ability to make cells and rows editable.

Note

Ext.grid.plugin.Editing should never be used directly because it is the base class for Ext.grid.plugin.CellEditing and Ext.grid.plugin.RowEditing.

Also, to make the columns editable, it is recommended to set the editor property in the column configuration.

Ext.grid.plugin.CellEditing

This plugin makes a single cell in our grid editable. We can edit only a single cell at a time. The editor is defined in the editor property on each of the column's configurations...