2 "name" : "Roo.grid.ColumnModel",
6 "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 "memberOf" : "ColumnModel",
19 "desc" : "An Array of column config objects. See this class's\nconfig objects for details.",
30 "desc" : "Header at Bootsrap Medium width",
35 "type" : "Roo.grid.GridEditor",
36 "desc" : "(Optional) For grid editors - returns the grid editor",
42 "desc" : "(Optional)",
48 "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>",
49 "memberOf" : "Roo.util.Observable"
54 "desc" : "Header at Bootsrap Small width",
60 "desc" : "(Optional)",
66 "desc" : "(Optional) can be '0' for hidden at this size (number less than 12)",
72 "desc" : "(Optional) Set the CSS text-align property of the column. Defaults to undefined.",
78 "desc" : "Header at Bootsrap Large width",
84 "desc" : "Header at Bootsrap extra Large width",
90 "desc" : "(Optional) True if the column width cannot be changed. Defaults to false.",
96 "desc" : "(Optional) True to hide the column. Defaults to false.",
102 "desc" : "(Optional) Set the CSS vertical-align property of the column (eg. middle, top, bottom etc). Defaults to undefined.",
108 "desc" : "(Optional) True to lock the column in place while scrolling the Grid. Defaults to false.",
114 "desc" : "(Optional) can be '0' for hidden at this size (number less than 12)",
120 "desc" : "(Optional) 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",
126 "desc" : "(Optional) can be '0' for hidden at this size (number less than 12)",
132 "desc" : "Header at Bootsrap Extra Small width (default for all)",
138 "desc" : "(Optional) 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}.",
144 "desc" : "The header text to display in the Grid view.",
150 "desc" : "(Optional) The initial width in pixels of the column. Using this\ninstead of {@link Roo.grid.Grid#autoSizeColumns} is more efficient.",
154 "name" : "resizable",
156 "desc" : "(Optional) False to disable column resizing. Defaults to true.",
162 "desc" : "(Optional) can be '0' for hidden at this size (number less than 12)",
166 "name" : "dataIndex",
168 "desc" : "(Optional) 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.",
174 "desc" : "(Optional) can be '0' for hidden at this size (number less than 12)",
180 "name" : "setRenderer",
182 "desc" : "Sets the rendering (formatting) function for a column.",
187 "isConstructor" : false,
199 "desc" : "The column index",
205 "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>",
214 "desc" : "Returns true if the column is hidden.",
215 "sig" : "(colIndex)",
219 "isConstructor" : false,
231 "desc" : "The column index",
244 "name" : "setColumnHeader",
246 "desc" : "Sets the header for a column.",
247 "sig" : "(col, header)",
251 "isConstructor" : false,
263 "desc" : "The column index",
269 "desc" : "The new header",
276 "name" : "getColumnCount",
278 "desc" : "Returns the number of columns.",
279 "sig" : "()\n{\n\n}",
283 "isConstructor" : false,
301 "name" : "addColumn",
303 "desc" : "Add a column (experimental...) - defaults to adding to the end..",
308 "isConstructor" : false,
327 "name" : "getColumnHeader",
329 "desc" : "Returns the header for the specified column.",
334 "isConstructor" : false,
346 "desc" : "The column index",
359 "name" : "getRenderer",
361 "desc" : "Returns the rendering (formatting) function defined for the column.",
366 "isConstructor" : false,
378 "desc" : "The column index.",
386 "desc" : "The function used to render the cell. See {@link #setRenderer}."
391 "name" : "getColumnTooltip",
393 "desc" : "Returns the tooltip for the specified column.",
398 "isConstructor" : false,
410 "desc" : "The column index",
423 "name" : "setColumnWidth",
425 "desc" : "Sets the width for a column.",
426 "sig" : "(col, width)",
430 "isConstructor" : false,
442 "desc" : "The column index",
448 "desc" : "The new width",
455 "name" : "setDataIndex",
457 "desc" : "Sets the dataIndex for a column.",
458 "sig" : "(col, dataIndex)",
462 "isConstructor" : false,
474 "desc" : "The column index",
478 "name" : "dataIndex",
480 "desc" : "The new dataIndex",
487 "name" : "isCellEditable",
489 "desc" : "Returns true if the cell is editable.",
490 "sig" : "(colIndex, rowIndex)",
494 "isConstructor" : false,
506 "desc" : "The column index",
512 "desc" : "The row index - this is nto actually used..?",
525 "name" : "getColumnsBy",
527 "desc" : "Returns the column configs that return true by the passed function that is called with (columnConfig, index)",
528 "sig" : "(fn, scope)",
532 "isConstructor" : false,
550 "desc" : "(optional)",
563 "name" : "getColumnWidth",
565 "desc" : "Returns the width for the specified column.",
566 "sig" : "(col, (optional))",
570 "isConstructor" : false,
582 "desc" : "The column index",
586 "name" : "(optional)",
588 "desc" : "{String} gridSize bootstrap width size.",
603 "desc" : "Returns true if the column width cannot be changed",
604 "sig" : "()\n{\n\n}",
608 "isConstructor" : false,
620 "name" : "getCellEditor",
622 "desc" : "Returns the editor defined for the cell/column.\nreturn false or null to disable editing.",
623 "sig" : "(colIndex, rowIndex)",
627 "isConstructor" : false,
639 "desc" : "The column index",
645 "desc" : "The row index",
658 "name" : "getColumnId",
660 "desc" : "Returns the id of the column at the specified index.",
665 "isConstructor" : false,
677 "desc" : "The column index",
690 "name" : "getDataIndex",
692 "desc" : "Returns the dataIndex for the specified column.",
697 "isConstructor" : false,
709 "desc" : "The column index",
722 "name" : "isResizable",
724 "desc" : "Returns true if the column can be resized",
725 "sig" : "()\n{\n\n}",
729 "isConstructor" : false,
747 "name" : "setColumnTooltip",
749 "desc" : "Sets the tooltip for a column.",
750 "sig" : "(col, tooltip)",
754 "isConstructor" : false,
766 "desc" : "The column index",
772 "desc" : "The new tooltip",
779 "name" : "setHidden",
781 "desc" : "Sets if a column is hidden.",
782 "sig" : "(colIndex, hidden)",
786 "isConstructor" : false,
798 "desc" : "The column index",
804 "desc" : "True if the column is hidden",
811 "name" : "setEditable",
813 "desc" : "Sets if a column is editable.",
814 "sig" : "(col, editable)",
818 "isConstructor" : false,
830 "desc" : "The column index",
836 "desc" : "True if the column is editable",
843 "name" : "getColumnById",
845 "desc" : "Returns the column for a specified id.",
850 "isConstructor" : false,
862 "desc" : "The column id",
870 "desc" : "the column"
875 "name" : "getColumnByDataIndex",
877 "desc" : "Returns the column Object for a specified dataIndex.",
878 "sig" : "(dataIndex)",
882 "isConstructor" : false,
892 "name" : "dataIndex",
894 "desc" : "The column dataIndex",
901 "type" : "Object|Boolean",
902 "desc" : "the column or false if not found"
907 "name" : "setEditor",
909 "desc" : "Sets the editor for a column.",
910 "sig" : "(col, editor)",
914 "isConstructor" : false,
926 "desc" : "The column index",
932 "desc" : "The editor object",
939 "name" : "findColumnIndex",
941 "desc" : "Returns the index for a specified column dataIndex.",
942 "sig" : "(dataIndex)",
946 "isConstructor" : false,
956 "name" : "dataIndex",
958 "desc" : "The column dataIndex",
966 "desc" : "the index, or -1 if not found"
971 "name" : "isSortable",
973 "desc" : "Returns true if the specified column is sortable.",
978 "isConstructor" : false,
990 "desc" : "The column index",
1003 "name" : "getIndexById",
1004 "type" : "function",
1005 "desc" : "Returns the index for a specified column id.",
1010 "isConstructor" : false,
1011 "isPrivate" : false,
1022 "desc" : "The column id",
1023 "isOptional" : false
1030 "desc" : "the index, or -1 if not found"
1035 "name" : "getTotalWidth",
1036 "type" : "function",
1037 "desc" : "Returns the total width of all columns.",
1038 "sig" : "(includeHidden)",
1042 "isConstructor" : false,
1043 "isPrivate" : false,
1052 "name" : "includeHidden",
1054 "desc" : "True to include hidden column widths",
1055 "isOptional" : false
1067 "name" : "purgeListeners",
1068 "type" : "function",
1069 "desc" : "Removes all listeners for this object",
1070 "sig" : "()\n{\n\n}",
1072 "memberOf" : "Roo.util.Observable",
1074 "isConstructor" : false,
1075 "isPrivate" : false,
1087 "type" : "function",
1088 "desc" : "Appends an event handler to this element (shorthand for addListener)",
1089 "sig" : "(eventName, handler, scope, options)",
1091 "memberOf" : "Roo.util.Observable",
1093 "isConstructor" : false,
1094 "isPrivate" : false,
1103 "name" : "eventName",
1105 "desc" : "The type of event to listen for",
1106 "isOptional" : false
1110 "type" : "Function",
1111 "desc" : "The method the event invokes",
1112 "isOptional" : false
1117 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
1118 "isOptional" : false
1123 "desc" : "(optional)",
1124 "isOptional" : false
1131 "type" : "function",
1132 "desc" : "Removes a listener (shorthand for removeListener)",
1133 "sig" : "(eventName, handler, scope)",
1135 "memberOf" : "Roo.util.Observable",
1137 "isConstructor" : false,
1138 "isPrivate" : false,
1147 "name" : "eventName",
1149 "desc" : "The type of event to listen for",
1150 "isOptional" : false
1154 "type" : "Function",
1155 "desc" : "The handler to remove",
1156 "isOptional" : false
1161 "desc" : "(optional) The scope (this object) for the handler",
1162 "isOptional" : false
1168 "name" : "addEvents",
1169 "type" : "function",
1170 "desc" : "Used to define events on this Observable",
1173 "memberOf" : "Roo.util.Observable",
1175 "isConstructor" : false,
1176 "isPrivate" : false,
1187 "desc" : "The object with the events defined",
1188 "isOptional" : false
1194 "name" : "releaseCapture",
1195 "type" : "function",
1196 "desc" : "Removes <b>all</b> added captures from the Observable.",
1199 "memberOf" : "Roo.util.Observable",
1201 "isConstructor" : false,
1202 "isPrivate" : false,
1212 "type" : "Observable",
1213 "desc" : "The Observable to release",
1214 "isOptional" : false
1220 "name" : "removeListener",
1221 "type" : "function",
1222 "desc" : "Removes a listener",
1223 "sig" : "(eventName, handler, scope)",
1225 "memberOf" : "Roo.util.Observable",
1227 "isConstructor" : false,
1228 "isPrivate" : false,
1237 "name" : "eventName",
1239 "desc" : "The type of event to listen for",
1240 "isOptional" : false
1244 "type" : "Function",
1245 "desc" : "The handler to remove",
1246 "isOptional" : false
1251 "desc" : "(optional) The scope (this object) for the handler",
1252 "isOptional" : false
1258 "name" : "fireEvent",
1259 "type" : "function",
1260 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
1261 "sig" : "(eventName, args)",
1263 "memberOf" : "Roo.util.Observable",
1265 "isConstructor" : false,
1266 "isPrivate" : false,
1275 "name" : "eventName",
1278 "isOptional" : false
1282 "type" : "Object...",
1283 "desc" : "Variable number of parameters are passed to handlers",
1284 "isOptional" : false
1291 "desc" : "returns false if any of the handlers return false otherwise it returns true"
1296 "name" : "hasListener",
1297 "type" : "function",
1298 "desc" : "Checks to see if this object has any listeners for a specified event",
1299 "sig" : "(eventName)",
1301 "memberOf" : "Roo.util.Observable",
1303 "isConstructor" : false,
1304 "isPrivate" : false,
1313 "name" : "eventName",
1315 "desc" : "The name of the event to check for",
1316 "isOptional" : false
1323 "desc" : "True if the event is being listened for, else false"
1329 "type" : "function",
1330 "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.",
1331 "sig" : "(o, fn, scope)",
1333 "memberOf" : "Roo.util.Observable",
1335 "isConstructor" : false,
1336 "isPrivate" : false,
1346 "type" : "Observable",
1347 "desc" : "The Observable to capture",
1348 "isOptional" : false
1352 "type" : "Function",
1353 "desc" : "The function to call",
1354 "isOptional" : false
1359 "desc" : "(optional) The scope (this object) for the fn",
1360 "isOptional" : false
1366 "name" : "addListener",
1367 "type" : "function",
1368 "desc" : "Appends an event handler to this component",
1369 "sig" : "(eventName, handler, scope, options)",
1371 "memberOf" : "Roo.util.Observable",
1373 "isConstructor" : false,
1374 "isPrivate" : false,
1383 "name" : "eventName",
1385 "desc" : "The type of event to listen for",
1386 "isOptional" : false
1390 "type" : "Function",
1391 "desc" : "The method the event invokes",
1392 "isOptional" : false
1397 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
1398 "isOptional" : false
1403 "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>",
1404 "isOptional" : false
1412 "name" : "hiddenchange",
1413 "type" : "function",
1414 "desc" : "Fires when a column is hidden or \"unhidden\".",
1415 "sig" : "function (_self, columnIndex, hidden)\n{\n\n}",
1424 "type" : "ColumnModel",
1426 "isOptional" : false
1429 "name" : "columnIndex",
1431 "desc" : "The column index",
1432 "isOptional" : false
1437 "desc" : "true if hidden, false otherwise",
1438 "isOptional" : false
1444 "name" : "headerchange",
1445 "type" : "function",
1446 "desc" : "Fires when the text of a header changes.",
1447 "sig" : "function (_self, columnIndex, newText)\n{\n\n}",
1456 "type" : "ColumnModel",
1458 "isOptional" : false
1461 "name" : "columnIndex",
1463 "desc" : "The column index",
1464 "isOptional" : false
1469 "desc" : "The new header text",
1470 "isOptional" : false
1476 "name" : "columlockchange",
1477 "type" : "function",
1478 "desc" : "Fires when a column's locked state is changed",
1479 "sig" : "function (_self, colIndex, locked)\n{\n\n}",
1488 "type" : "ColumnModel",
1490 "isOptional" : false
1493 "name" : "colIndex",
1496 "isOptional" : false
1501 "desc" : "true if locked",
1502 "isOptional" : false
1508 "name" : "columnmoved",
1509 "type" : "function",
1510 "desc" : "Fires when a column is moved.",
1511 "sig" : "function (_self, oldIndex, newIndex)\n{\n\n}",
1520 "type" : "ColumnModel",
1522 "isOptional" : false
1525 "name" : "oldIndex",
1528 "isOptional" : false
1531 "name" : "newIndex",
1534 "isOptional" : false
1540 "name" : "widthchange",
1541 "type" : "function",
1542 "desc" : "Fires when the width of a column changes.",
1543 "sig" : "function (_self, columnIndex, newWidth)\n{\n\n}",
1552 "type" : "ColumnModel",
1554 "isOptional" : false
1557 "name" : "columnIndex",
1559 "desc" : "The column index",
1560 "isOptional" : false
1563 "name" : "newWidth",
1565 "desc" : "The new width",
1566 "isOptional" : false