Skip to content
Snippets Groups Projects
Commit 32d64915 authored by Renaud Le Gac's avatar Renaud Le Gac
Browse files

Add a private parameter ptype.

It simplified the life when looking for installed plugins in the grid.
parent 64478d8a
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,11 @@ App.grid.RowEditor = Ext.extend(Ext.Window, {
*/
formModel: null,
/**
* Private parameter identifying the type of plugin
*/
ptype: 'pgridroweditor',
/**
* pre-defined properties for the window
*/
......@@ -51,7 +56,7 @@ App.grid.RowEditor = Ext.extend(Ext.Window, {
},
/**
* Plugin initialization function
* Plugin initialization
*
* @param {Object} grid GridPanel the grid instantiating the plugin
*/
......
......@@ -14,7 +14,16 @@
Ext.namespace('App.grid');
App.grid.RowEditorContextMenu = Ext.extend(Object, {
/**
* Private parameter identifying the type of plugin
*/
ptype: 'pGridRowEditorContextMenu',
/**
* Plugin intialisation
* @param {Object} grid
*/
init: function(grid){
var menu = new Ext.menu.Menu();
......
......@@ -13,6 +13,15 @@ Ext.namespace('App.grid');
App.grid.RowEditorToolbar = Ext.extend(Object, {
/**
* Private parameter identifying the type of plugin
*/
ptype: 'pGridRowEditorToolbar',
/**
* Plugin intiaisation
* @param {Object} grid
*/
init: function(grid){
// create and initialize the underlying RowEditor
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment