X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=docs%2Fsymbols%2FRoo.bootstrap.Table.json;h=2775d609522cc7e506076648cd1ad6d4310cf7ff;hp=8ec905fe2d4e7a4ac14b3355e47618fa52412817;hb=d81ddeecb21edfe27401017eb4d0cc01dfae425b;hpb=5a09638750d76b5c2f42753ab924401909761f61 diff --git a/docs/symbols/Roo.bootstrap.Table.json b/docs/symbols/Roo.bootstrap.Table.json index 8ec905fe2d..2775d60952 100644 --- a/docs/symbols/Roo.bootstrap.Table.json +++ b/docs/symbols/Roo.bootstrap.Table.json @@ -5,7 +5,7 @@ "Roo.Component", "Roo.util.Observable" ], - "desc" : "Bootstrap Table class", + "desc" : "Bootstrap Table class. This class represents the primary interface of a component based grid control.\nSimilar to Roo.grid.Grid\n
\n var table = Roo.factory({\n    xtype : 'Table',\n    xns : Roo.bootstrap,\n    autoSizeColumns: true,\n    \n    \n    store : {\n        xtype : 'Store',\n        xns : Roo.data,\n        remoteSort : true,\n        sortInfo : { direction : 'ASC', field: 'name' },\n        proxy : {\n           xtype : 'HttpProxy',\n           xns : Roo.data,\n           method : 'GET',\n           url : 'https://example.com/some.data.url.json'\n        },\n        reader : {\n           xtype : 'JsonReader',\n           xns : Roo.data,\n           fields : [ 'id', 'name', whatever' ],\n           id : 'id',\n           root : 'data'\n        }\n    },\n    cm : [\n        {\n            xtype : 'ColumnModel',\n            xns : Roo.grid,\n            align : 'center',\n            cursor : 'pointer',\n            dataIndex : 'is_in_group',\n            header : \"Name\",\n            sortable : true,\n            renderer : function(v, x , r) {  \n            \n                return String.format(\"{0}\", v)\n            }\n            width : 3\n        } // more columns..\n    ],\n    selModel : {\n        xtype : 'RowSelectionModel',\n        xns : Roo.bootstrap.Table\n        // you can add listeners to catch selection change here....\n    }\n     \n\n });\n // set any options\n grid.render(Roo.get(\"some-div\"));\n
\n\nCurrently the Table uses multiple headers to try and handle XL / Medium etc... styling", "isSingleton" : false, "isStatic" : false, "isBuiltin" : false, @@ -61,6 +61,13 @@ "false)" ] }, + { + "name" : "cm[]", + "type" : "Roo.grid.ColumnModel", + "desc" : "A column for th grid.", + "memberOf" : "Roo.bootstrap.Table", + "values" : [] + }, { "name" : "xattr", "type" : "Object", @@ -68,13 +75,6 @@ "memberOf" : "Roo.bootstrap.Component", "values" : [] }, - { - "name" : "border", - "type" : "Number", - "desc" : "Specifies whether the table cells should have borders or not", - "memberOf" : "Roo.bootstrap.Table", - "values" : [] - }, { "name" : "name", "type" : "string", @@ -83,9 +83,9 @@ "values" : [] }, { - "name" : "width", + "name" : "minColumnWidth", "type" : "Number", - "desc" : "Specifies the width of a table", + "desc" : "default 50 pixels minimum column width", "memberOf" : "Roo.bootstrap.Table", "values" : [] }, @@ -96,13 +96,6 @@ "memberOf" : "Roo.bootstrap.Table", "values" : [] }, - { - "name" : "rules", - "type" : "String", - "desc" : "Specifies which parts of the inside borders that should be visible", - "memberOf" : "Roo.bootstrap.Table", - "values" : [] - }, { "name" : "tooltip", "type" : "string", @@ -117,13 +110,6 @@ "memberOf" : "Roo.Component", "values" : [] }, - { - "name" : "layout", - "type" : "String", - "desc" : "table layout (auto | fixed | initial | inherit)", - "memberOf" : "Roo.bootstrap.Table", - "values" : [] - }, { "name" : "condensed", "type" : "boolean", @@ -139,9 +125,9 @@ "values" : [] }, { - "name" : "frame", - "type" : "String", - "desc" : "Specifies which parts of the outside borders that should be visible", + "name" : "store", + "type" : "Roo.data.Store|Roo.data.SimpleStore", + "desc" : "The data store to use", "memberOf" : "Roo.bootstrap.Table", "values" : [] }, @@ -155,13 +141,6 @@ "false)" ] }, - { - "name" : "sortable", - "type" : "String", - "desc" : "Specifies that the table should be sortable", - "memberOf" : "Roo.bootstrap.Table", - "values" : [] - }, { "name" : "actionMode", "type" : "String", @@ -169,6 +148,13 @@ "memberOf" : "Roo.Component", "values" : [] }, + { + "name" : "sm", + "type" : "Roo.grid.RowSelectionModel|Roo.grid.CellSelectionModel", + "desc" : "The selection model to use (cell selection is not supported yet)", + "memberOf" : "Roo.bootstrap.Table", + "values" : [] + }, { "name" : "listeners", "type" : "Object", @@ -190,24 +176,6 @@ "memberOf" : "Roo.bootstrap.Component", "values" : [] }, - { - "name" : "cellspacing", - "type" : "Number", - "desc" : "Specifies the space between cells", - "memberOf" : "Roo.bootstrap.Table", - "values" : [] - }, - { - "name" : "align", - "type" : "String", - "desc" : "Specifies the alignment of a table according to surrounding text", - "memberOf" : "Roo.bootstrap.Table", - "values" : [ - "(left", - "center", - "right)" - ] - }, { "name" : "lazyLoad", "type" : "Boolean", @@ -229,13 +197,6 @@ "memberOf" : "Roo.bootstrap.Table", "values" : [] }, - { - "name" : "bgcolor", - "type" : "String", - "desc" : "Specifies the background color for a table", - "memberOf" : "Roo.bootstrap.Table", - "values" : [] - }, { "name" : "headerShow", "type" : "Boolean", @@ -270,13 +231,6 @@ "memberOf" : "Roo.bootstrap.Component", "values" : [] }, - { - "name" : "cellpadding", - "type" : "Number", - "desc" : "Specifies the space between the cell wall and the cell content", - "memberOf" : "Roo.bootstrap.Table", - "values" : [] - }, { "name" : "disableClass", "type" : "String", @@ -294,6 +248,13 @@ "parent)" ] }, + { + "name" : "enableColumnResize", + "type" : "Boolean", + "desc" : "default true if columns can be resized (drag/drop)", + "memberOf" : "Roo.bootstrap.Table", + "values" : [] + }, { "name" : "dataId", "type" : "string", @@ -301,13 +262,6 @@ "memberOf" : "Roo.bootstrap.Component", "values" : [] }, - { - "name" : "summary", - "type" : "String", - "desc" : "Specifies a summary of the content of a table", - "memberOf" : "Roo.bootstrap.Table", - "values" : [] - }, { "name" : "rowSelection", "type" : "Boolean", @@ -354,6 +308,123 @@ ], "returns" : [] }, + { + "name" : "getRowIndex", + "desc" : "get the Row Index from a dom element.", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.bootstrap.Table", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "row", + "type" : "Roo.Element", + "desc" : "The row to look for", + "isOptional" : false + } + ], + "returns" : [] + }, + { + "name" : "ensureVisible", + "desc" : "Scrolls the specified cell into view", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.bootstrap.Table", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "row", + "type" : "Number", + "desc" : "The row index", + "isOptional" : false + }, + { + "name" : "col", + "type" : "Number", + "desc" : "The column index", + "isOptional" : false + }, + { + "name" : "hscroll", + "type" : "Boolean", + "desc" : "false to disable horizontal scrolling", + "isOptional" : false + } + ], + "returns" : [] + }, + { + "name" : "getCellIndex", + "desc" : "get the Column Index from a dom element. (using regex on x-hcol-{colid})", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.bootstrap.Table", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "cell", + "type" : "domElement", + "desc" : "to look for", + "isOptional" : false + } + ], + "returns" : [] + }, + { + "name" : "getHeaderIndex", + "desc" : "get the header TH element for columnIndex", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.bootstrap.Table", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "columnIndex", + "type" : "Number", + "desc" : "", + "isOptional" : false + } + ], + "returns" : [] + }, + { + "name" : "focusRow", + "desc" : "Focuses the specified row.", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.bootstrap.Table", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "row", + "type" : "Number", + "desc" : "The row index", + "isOptional" : false + } + ], + "returns" : [] + }, { "name" : "getGridEl", "desc" : "Returns the grid's underlying element = used by panel.Grid", @@ -408,6 +479,39 @@ "params" : [], "returns" : [] }, + { + "name" : "focusCell", + "desc" : "Focuses the specified cell.", + "isStatic" : false, + "isConstructor" : false, + "isPrivate" : false, + "memberOf" : "Roo.bootstrap.Table", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "row", + "type" : "Number", + "desc" : "The row index", + "isOptional" : false + }, + { + "name" : "col", + "type" : "Number", + "desc" : "The column index", + "isOptional" : false + }, + { + "name" : "hscroll", + "type" : "Boolean", + "desc" : "false to disable horizontal scrolling", + "isOptional" : false + } + ], + "returns" : [] + }, { "name" : "tooltipEl", "desc" : "Fetch the element to display the tooltip on.", @@ -1119,6 +1223,24 @@ ], "returns" : [] }, + { + "name" : "mousedown", + "desc" : "The raw mousedown event for the entire grid.", + "memberOf" : "Roo.bootstrap.Table", + "example" : "", + "deprecated" : "", + "since" : "", + "see" : "", + "params" : [ + { + "name" : "e", + "type" : "Roo.EventObject", + "desc" : "", + "isOptional" : false + } + ], + "returns" : [] + }, { "name" : "rowcontextmenu", "desc" : "Fires when a row is right clicked",