2 "name" : "Roo.grid.ColumnModel",
9 "desc" : "This is the default implementation of a ColumnModel used by the Grid. It defines\nthe columns in the grid.\n<br>Usage:<br>\n <pre><code>\n var colModel = new Roo.grid.ColumnModel([\n\t{header: \"Ticker\", width: 60, sortable: true, locked: true},\n\t{header: \"Company Name\", width: 150, sortable: true},\n\t{header: \"Market Cap.\", width: 100, sortable: true},\n\t{header: \"$ Sales\", width: 100, sortable: true, renderer: money},\n\t{header: \"Employees\", width: 100, sortable: true, resizable: false}\n ]);\n </code></pre>\n<p>\nThe config options listed for this class are options which may appear in each\nindividual column definition.\n<br/>RooJS Fix - column id's are not sequential but use Roo.id() - fixes bugs with layouts.",
10 "isSingleton" : false,
14 "isBuilderTop" : false,
15 "memberOf" : "ColumnModel",
24 "desc" : "An Array of column config objects. See this class's\nconfig objects for details.",
35 "desc" : "Header at Bootsrap Medium width",
42 "type" : "Roo.grid.GridEditor",
43 "desc" : "For grid editors - returns the grid editor",
59 "desc" : "list of events and functions to call for this object, \nFor example :\n<pre><code>\n listeners : { \n 'click' : function(e) {\n ..... \n } ,\n .... \n } \n </code></pre>",
60 "memberOf" : "Roo.util.Observable",
67 "desc" : "Header at Bootsrap Small width",
83 "desc" : "can be '0' for hidden at this size (number less than 12)",
91 "desc" : "Set the CSS text-align property of the column. Defaults to undefined.",
99 "desc" : "Header at Bootsrap Large width",
101 "isOptional" : false,
107 "desc" : "Header at Bootsrap extra Large width",
109 "isOptional" : false,
115 "desc" : "True if the column width cannot be changed. Defaults to false.",
117 "isOptional" : false,
123 "desc" : "True to hide the column. Defaults to false.",
125 "isOptional" : false,
131 "desc" : "Set the CSS vertical-align property of the column (eg. middle, top, bottom etc). Defaults to undefined.",
133 "isOptional" : false,
139 "desc" : "True to lock the column in place while scrolling the Grid. Defaults to false.",
141 "isOptional" : false,
147 "desc" : "can be '0' for hidden at this size (number less than 12)",
149 "isOptional" : false,
155 "desc" : "A function used to generate HTML markup for a cell\ngiven the cell's data value. See {@link #setRenderer}. If not specified, the\ndefault renderer returns the escaped data value. If an object is returned (bootstrap only)\nthen it is treated as a Roo Component object instance, and it is rendered after the initial row is rendered",
157 "isOptional" : false,
163 "desc" : "can be '0' for hidden at this size (number less than 12)",
165 "isOptional" : false,
171 "desc" : "Header at Bootsrap Extra Small width (default for all)",
173 "isOptional" : false,
179 "desc" : "True if sorting is to be allowed on this column.\nDefaults to the value of the {@link #defaultSortable} property.\nWhether local/remote sorting is used is specified in {@link Roo.data.Store#remoteSort}.",
181 "isOptional" : false,
187 "desc" : "The header text to display in the Grid view.",
189 "isOptional" : false,
195 "desc" : "The initial width in pixels of the column. Using this\ninstead of {@link Roo.grid.Grid#autoSizeColumns} is more efficient.",
197 "isOptional" : false,
201 "name" : "resizable",
203 "desc" : "False to disable column resizing. Defaults to true.",
205 "isOptional" : false,
211 "desc" : "can be '0' for hidden at this size (number less than 12)",
213 "isOptional" : false,
217 "name" : "dataIndex",
219 "desc" : "The name of the field in the grid's {@link Roo.data.Store}'s\n{@link Roo.data.Record} definition from which to draw the column's value. If not\nspecified, the column's index is used as an index into the Record's data Array.",
221 "isOptional" : false,
227 "desc" : "can be '0' for hidden at this size (number less than 12)",
229 "isOptional" : false,
235 "name" : "setRenderer",
237 "desc" : "Sets the rendering (formatting) function for a column.",
242 "isConstructor" : false,
254 "desc" : "The column index",
260 "desc" : "The function to use to process the cell's raw data\nto return HTML markup for the grid view. The render function is called with\nthe following parameters:<ul>\n<li>Data value.</li>\n<li>Cell metadata. An object in which you may set the following attributes:<ul>\n<li>css A CSS style string to apply to the table cell.</li>\n<li>attr An HTML attribute definition string to apply to the data container element <i>within</i> the table cell.</li></ul>\n<li>The {@link Roo.data.Record} from which the data was extracted.</li>\n<li>Row index</li>\n<li>Column index</li>\n<li>The {@link Roo.data.Store} object from which the Record was extracted</li></ul>",
269 "desc" : "Returns true if the column is hidden.",
270 "sig" : "(colIndex)",
274 "isConstructor" : false,
286 "desc" : "The column index",
299 "name" : "setColumnHeader",
301 "desc" : "Sets the header for a column.",
302 "sig" : "(col, header)",
306 "isConstructor" : false,
318 "desc" : "The column index",
324 "desc" : "The new header",
331 "name" : "getColumnCount",
333 "desc" : "Returns the number of columns.",
334 "sig" : "()\n{\n\n}",
338 "isConstructor" : false,
356 "name" : "addColumn",
358 "desc" : "Add a column (experimental...) - defaults to adding to the end..",
363 "isConstructor" : false,
382 "name" : "getColumnHeader",
384 "desc" : "Returns the header for the specified column.",
389 "isConstructor" : false,
401 "desc" : "The column index",
414 "name" : "getRenderer",
416 "desc" : "Returns the rendering (formatting) function defined for the column.",
421 "isConstructor" : false,
433 "desc" : "The column index.",
441 "desc" : "The function used to render the cell. See {@link #setRenderer}."
446 "name" : "getColumnTooltip",
448 "desc" : "Returns the tooltip for the specified column.",
453 "isConstructor" : false,
465 "desc" : "The column index",
478 "name" : "setColumnWidth",
480 "desc" : "Sets the width for a column.",
481 "sig" : "(col, width)",
485 "isConstructor" : false,
497 "desc" : "The column index",
503 "desc" : "The new width",
510 "name" : "setDataIndex",
512 "desc" : "Sets the dataIndex for a column.",
513 "sig" : "(col, dataIndex)",
517 "isConstructor" : false,
529 "desc" : "The column index",
533 "name" : "dataIndex",
535 "desc" : "The new dataIndex",
542 "name" : "isCellEditable",
544 "desc" : "Returns true if the cell is editable.",
545 "sig" : "(colIndex, rowIndex)",
549 "isConstructor" : false,
561 "desc" : "The column index",
567 "desc" : "The row index - this is nto actually used..?",
580 "name" : "getColumnsBy",
582 "desc" : "Returns the column configs that return true by the passed function that is called with (columnConfig, index)",
583 "sig" : "(fn, scope)",
587 "isConstructor" : false,
605 "desc" : "(optional)",
618 "name" : "getColumnWidth",
620 "desc" : "Returns the width for the specified column.",
621 "sig" : "(col, (optional))",
625 "isConstructor" : false,
637 "desc" : "The column index",
641 "name" : "(optional)",
643 "desc" : "{String} gridSize bootstrap width size.",
658 "desc" : "Returns true if the column width cannot be changed",
659 "sig" : "()\n{\n\n}",
663 "isConstructor" : false,
675 "name" : "getCellEditor",
677 "desc" : "Returns the editor defined for the cell/column.\nreturn false or null to disable editing.",
678 "sig" : "(colIndex, rowIndex)",
682 "isConstructor" : false,
694 "desc" : "The column index",
700 "desc" : "The row index",
713 "name" : "getColumnId",
715 "desc" : "Returns the id of the column at the specified index.",
720 "isConstructor" : false,
732 "desc" : "The column index",
745 "name" : "getDataIndex",
747 "desc" : "Returns the dataIndex for the specified column.",
752 "isConstructor" : false,
764 "desc" : "The column index",
777 "name" : "isResizable",
779 "desc" : "Returns true if the column can be resized",
780 "sig" : "()\n{\n\n}",
784 "isConstructor" : false,
802 "name" : "setColumnTooltip",
804 "desc" : "Sets the tooltip for a column.",
805 "sig" : "(col, tooltip)",
809 "isConstructor" : false,
821 "desc" : "The column index",
827 "desc" : "The new tooltip",
834 "name" : "setHidden",
836 "desc" : "Sets if a column is hidden.",
837 "sig" : "(colIndex, hidden)",
841 "isConstructor" : false,
853 "desc" : "The column index",
859 "desc" : "True if the column is hidden",
866 "name" : "setEditable",
868 "desc" : "Sets if a column is editable.",
869 "sig" : "(col, editable)",
873 "isConstructor" : false,
885 "desc" : "The column index",
891 "desc" : "True if the column is editable",
898 "name" : "getColumnById",
900 "desc" : "Returns the column for a specified id.",
905 "isConstructor" : false,
917 "desc" : "The column id",
925 "desc" : "the column"
930 "name" : "getColumnByDataIndex",
932 "desc" : "Returns the column Object for a specified dataIndex.",
933 "sig" : "(dataIndex)",
937 "isConstructor" : false,
947 "name" : "dataIndex",
949 "desc" : "The column dataIndex",
956 "type" : "Object|Boolean",
957 "desc" : "the column or false if not found"
962 "name" : "setEditor",
964 "desc" : "Sets the editor for a column.",
965 "sig" : "(col, editor)",
969 "isConstructor" : false,
981 "desc" : "The column index",
987 "desc" : "The editor object",
994 "name" : "findColumnIndex",
996 "desc" : "Returns the index for a specified column dataIndex.",
997 "sig" : "(dataIndex)",
1001 "isConstructor" : false,
1002 "isPrivate" : false,
1011 "name" : "dataIndex",
1013 "desc" : "The column dataIndex",
1014 "isOptional" : false
1021 "desc" : "the index, or -1 if not found"
1026 "name" : "isSortable",
1027 "type" : "function",
1028 "desc" : "Returns true if the specified column is sortable.",
1033 "isConstructor" : false,
1034 "isPrivate" : false,
1045 "desc" : "The column index",
1046 "isOptional" : false
1058 "name" : "getIndexById",
1059 "type" : "function",
1060 "desc" : "Returns the index for a specified column id.",
1065 "isConstructor" : false,
1066 "isPrivate" : false,
1077 "desc" : "The column id",
1078 "isOptional" : false
1085 "desc" : "the index, or -1 if not found"
1090 "name" : "getTotalWidth",
1091 "type" : "function",
1092 "desc" : "Returns the total width of all columns.",
1093 "sig" : "(includeHidden)",
1097 "isConstructor" : false,
1098 "isPrivate" : false,
1107 "name" : "includeHidden",
1109 "desc" : "True to include hidden column widths",
1110 "isOptional" : false
1122 "name" : "purgeListeners",
1123 "type" : "function",
1124 "desc" : "Removes all listeners for this object",
1125 "sig" : "()\n{\n\n}",
1127 "memberOf" : "Roo.util.Observable",
1129 "isConstructor" : false,
1130 "isPrivate" : false,
1142 "type" : "function",
1143 "desc" : "Appends an event handler to this element (shorthand for addListener)",
1144 "sig" : "(eventName, handler, scope, options)",
1146 "memberOf" : "Roo.util.Observable",
1148 "isConstructor" : false,
1149 "isPrivate" : false,
1158 "name" : "eventName",
1160 "desc" : "The type of event to listen for",
1161 "isOptional" : false
1165 "type" : "Function",
1166 "desc" : "The method the event invokes",
1167 "isOptional" : false
1172 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
1173 "isOptional" : false
1178 "desc" : "(optional)",
1179 "isOptional" : false
1186 "type" : "function",
1187 "desc" : "Removes a listener (shorthand for removeListener)",
1188 "sig" : "(eventName, handler, scope)",
1190 "memberOf" : "Roo.util.Observable",
1192 "isConstructor" : false,
1193 "isPrivate" : false,
1202 "name" : "eventName",
1204 "desc" : "The type of event to listen for",
1205 "isOptional" : false
1209 "type" : "Function",
1210 "desc" : "The handler to remove",
1211 "isOptional" : false
1216 "desc" : "(optional) The scope (this object) for the handler",
1217 "isOptional" : false
1223 "name" : "addEvents",
1224 "type" : "function",
1225 "desc" : "Used to define events on this Observable",
1228 "memberOf" : "Roo.util.Observable",
1230 "isConstructor" : false,
1231 "isPrivate" : false,
1242 "desc" : "The object with the events defined",
1243 "isOptional" : false
1249 "name" : "releaseCapture",
1250 "type" : "function",
1251 "desc" : "Removes <b>all</b> added captures from the Observable.",
1254 "memberOf" : "Roo.util.Observable",
1256 "isConstructor" : false,
1257 "isPrivate" : false,
1267 "type" : "Observable",
1268 "desc" : "The Observable to release",
1269 "isOptional" : false
1275 "name" : "removeListener",
1276 "type" : "function",
1277 "desc" : "Removes a listener",
1278 "sig" : "(eventName, handler, scope)",
1280 "memberOf" : "Roo.util.Observable",
1282 "isConstructor" : false,
1283 "isPrivate" : false,
1292 "name" : "eventName",
1294 "desc" : "The type of event to listen for",
1295 "isOptional" : false
1299 "type" : "Function",
1300 "desc" : "The handler to remove",
1301 "isOptional" : false
1306 "desc" : "(optional) The scope (this object) for the handler",
1307 "isOptional" : false
1313 "name" : "fireEvent",
1314 "type" : "function",
1315 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
1316 "sig" : "(eventName, args)",
1318 "memberOf" : "Roo.util.Observable",
1320 "isConstructor" : false,
1321 "isPrivate" : false,
1330 "name" : "eventName",
1333 "isOptional" : false
1337 "type" : "Object...",
1338 "desc" : "Variable number of parameters are passed to handlers",
1339 "isOptional" : false
1346 "desc" : "returns false if any of the handlers return false otherwise it returns true"
1351 "name" : "hasListener",
1352 "type" : "function",
1353 "desc" : "Checks to see if this object has any listeners for a specified event",
1354 "sig" : "(eventName)",
1356 "memberOf" : "Roo.util.Observable",
1358 "isConstructor" : false,
1359 "isPrivate" : false,
1368 "name" : "eventName",
1370 "desc" : "The name of the event to check for",
1371 "isOptional" : false
1378 "desc" : "True if the event is being listened for, else false"
1384 "type" : "function",
1385 "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\n<b>before</b> the event is fired. If the supplied function returns false,\nthe event will not fire.",
1386 "sig" : "(o, fn, scope)",
1388 "memberOf" : "Roo.util.Observable",
1390 "isConstructor" : false,
1391 "isPrivate" : false,
1401 "type" : "Observable",
1402 "desc" : "The Observable to capture",
1403 "isOptional" : false
1407 "type" : "Function",
1408 "desc" : "The function to call",
1409 "isOptional" : false
1414 "desc" : "(optional) The scope (this object) for the fn",
1415 "isOptional" : false
1421 "name" : "addListener",
1422 "type" : "function",
1423 "desc" : "Appends an event handler to this component",
1424 "sig" : "(eventName, handler, scope, options)",
1426 "memberOf" : "Roo.util.Observable",
1428 "isConstructor" : false,
1429 "isPrivate" : false,
1438 "name" : "eventName",
1440 "desc" : "The type of event to listen for",
1441 "isOptional" : false
1445 "type" : "Function",
1446 "desc" : "The method the event invokes",
1447 "isOptional" : false
1452 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
1453 "isOptional" : false
1458 "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:<ul>\n<li>scope {Object} The scope in which to execute the handler function. The handler function's \"this\" context.</li>\n<li>delay {Number} The number of milliseconds to delay the invocation of the handler after te event fires.</li>\n<li>single {Boolean} True to add a handler to handle just the next firing of the event, and then remove itself.</li>\n<li>buffer {Number} Causes the handler to be scheduled to run in an {@link Roo.util.DelayedTask} delayed\nby the specified number of milliseconds. If the event fires again within that time, the original\nhandler is <em>not</em> invoked, but the new handler is scheduled in its place.</li>\n</ul><br>\n<p>\n<b>Combining Options</b><br>\nUsing the options argument, it is possible to combine different types of listeners:<br>\n<br>\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t<pre><code>\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n \t\tdelay: 100,\n \t\tforumId: 4\n\t\t});\n\t\t</code></pre>\n<p>\n<b>Attaching multiple handlers in 1 call</b><br>\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n<pre><code>\n\t\tel.on({\n\t\t\t'click': {\n \t\tfn: this.onClick,\n \t\tscope: this,\n \t\tdelay: 100\n \t\t}, \n \t\t'mouseover': {\n \t\tfn: this.onMouseOver,\n \t\tscope: this\n \t\t},\n \t\t'mouseout': {\n \t\tfn: this.onMouseOut,\n \t\tscope: this\n \t\t}\n\t\t});\n\t\t</code></pre>\n<p>\nOr a shorthand syntax which passes the same scope object to all handlers:\n \t<pre><code>\n\t\tel.on({\n\t\t\t'click': this.onClick,\n \t\t'mouseover': this.onMouseOver,\n \t\t'mouseout': this.onMouseOut,\n \t\tscope: this\n\t\t});\n\t\t</code></pre>",
1459 "isOptional" : false
1467 "name" : "hiddenchange",
1468 "type" : "function",
1469 "desc" : "Fires when a column is hidden or \"unhidden\".",
1470 "sig" : "function (_self, columnIndex, hidden)\n{\n\n}",
1479 "type" : "ColumnModel",
1481 "isOptional" : false
1484 "name" : "columnIndex",
1486 "desc" : "The column index",
1487 "isOptional" : false
1492 "desc" : "true if hidden, false otherwise",
1493 "isOptional" : false
1499 "name" : "headerchange",
1500 "type" : "function",
1501 "desc" : "Fires when the text of a header changes.",
1502 "sig" : "function (_self, columnIndex, newText)\n{\n\n}",
1511 "type" : "ColumnModel",
1513 "isOptional" : false
1516 "name" : "columnIndex",
1518 "desc" : "The column index",
1519 "isOptional" : false
1524 "desc" : "The new header text",
1525 "isOptional" : false
1531 "name" : "columlockchange",
1532 "type" : "function",
1533 "desc" : "Fires when a column's locked state is changed",
1534 "sig" : "function (_self, colIndex, locked)\n{\n\n}",
1543 "type" : "ColumnModel",
1545 "isOptional" : false
1548 "name" : "colIndex",
1551 "isOptional" : false
1556 "desc" : "true if locked",
1557 "isOptional" : false
1563 "name" : "columnmoved",
1564 "type" : "function",
1565 "desc" : "Fires when a column is moved.",
1566 "sig" : "function (_self, oldIndex, newIndex)\n{\n\n}",
1575 "type" : "ColumnModel",
1577 "isOptional" : false
1580 "name" : "oldIndex",
1583 "isOptional" : false
1586 "name" : "newIndex",
1589 "isOptional" : false
1595 "name" : "widthchange",
1596 "type" : "function",
1597 "desc" : "Fires when the width of a column changes.",
1598 "sig" : "function (_self, columnIndex, newWidth)\n{\n\n}",
1607 "type" : "ColumnModel",
1609 "isOptional" : false
1612 "name" : "columnIndex",
1614 "desc" : "The column index",
1615 "isOptional" : false
1618 "name" : "newWidth",
1620 "desc" : "The new width",
1621 "isOptional" : false