webgui/www/extras/yui-ext/source/grid/EditorGrid.js
JT Smith cfd09a5cb6 upgraded to yui 0.12.0
upgraded to yui-ext 0.33 rc2
2006-11-28 02:23:34 +00:00

21 lines
No EOL
965 B
JavaScript

/*
* YUI Extensions 0.33 RC2
* Copyright(c) 2006, Jack Slocum.
*/
/**
* @class YAHOO.ext.grid.EditorGrid
* @extends YAHOO.ext.grid.Grid
* Shortcut class for creating and editable grid.
* @param {String/HTMLElement/YAHOO.ext.Element} container The element into which this grid will be rendered -
* The container MUST have some type of size defined for the grid to fill. The container will be
* automatically set to position relative if it isn't already.
* @param {Object} dataModel The data model to bind to
* @param {Object} colModel The column model with info about this grid's columns
*/
YAHOO.ext.grid.EditorGrid = function(container, dataModel, colModel){
YAHOO.ext.grid.EditorGrid.superclass.constructor.call(this, container, dataModel,
colModel, new YAHOO.ext.grid.EditorSelectionModel());
this.container.addClass('yeditgrid');
};
YAHOO.extendX(YAHOO.ext.grid.EditorGrid, YAHOO.ext.grid.Grid);