initial import
[roojs1] / Roo / grid / GridEditor.js
1 /*
2  * Based on:
3  * Ext JS Library 1.1.1
4  * Copyright(c) 2006-2007, Ext JS, LLC.
5  *
6  * Originally Released Under LGPL - original licence link has changed is not relivant.
7  *
8  * Fork - LGPL
9  * <script type="text/javascript">
10  */
11
12 // private - not really -- you end up using it !
13 // This is a support class used internally by the Grid components
14
15 /**
16  * @class Roo.grid.GridEditor
17  * @extends Roo.Editor
18  * Class for creating and editable grid elements.
19  * @param {Object} config any settings (must include field)
20  */
21 Roo.grid.GridEditor = function(field, config){
22     if (!config && field.field) {
23         config = field;
24         field = Roo.factory(config.field, Roo.form);
25     }
26     Roo.grid.GridEditor.superclass.constructor.call(this, field, config);
27     field.monitorTab = false;
28 };
29
30 Roo.extend(Roo.grid.GridEditor, Roo.Editor, {
31     
32     /**
33      * @cfg {Roo.form.Field} field Field to wrap (or xtyped)
34      */
35     
36     alignment: "tl-tl",
37     autoSize: "width",
38     hideEl : false,
39     cls: "x-small-editor x-grid-editor",
40     shim:false,
41     shadow:"frame"
42 });