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.",
28 "desc" : "Header at Bootsrap Medium width",
29 "memberOf" : "Roo.grid.ColumnModel",
34 "type" : "Roo.grid.GridEditor",
35 "desc" : "(Optional) For grid editors - returns the grid editor",
36 "memberOf" : "Roo.grid.ColumnModel",
42 "desc" : "(Optional)",
43 "memberOf" : "Roo.grid.ColumnModel",
49 "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>",
50 "memberOf" : "Roo.util.Observable",
56 "desc" : "Header at Bootsrap Small width",
57 "memberOf" : "Roo.grid.ColumnModel",
63 "desc" : "(Optional)",
64 "memberOf" : "Roo.grid.ColumnModel",
70 "desc" : "(Optional) can be '0' for hidden at this size (number less than 12)",
71 "memberOf" : "Roo.grid.ColumnModel",
77 "desc" : "(Optional) Set the CSS text-align property of the column. Defaults to undefined.",
78 "memberOf" : "Roo.grid.ColumnModel",
84 "desc" : "Header at Bootsrap Large width",
85 "memberOf" : "Roo.grid.ColumnModel",
91 "desc" : "Header at Bootsrap extra Large width",
92 "memberOf" : "Roo.grid.ColumnModel",
98 "desc" : "(Optional) True if the column width cannot be changed. Defaults to false.",
99 "memberOf" : "Roo.grid.ColumnModel",
105 "desc" : "(Optional) True to hide the column. Defaults to false.",
106 "memberOf" : "Roo.grid.ColumnModel",
112 "desc" : "(Optional) Set the CSS vertical-align property of the column (eg. middle, top, bottom etc). Defaults to undefined.",
113 "memberOf" : "Roo.grid.ColumnModel",
119 "desc" : "(Optional) True to lock the column in place while scrolling the Grid. Defaults to false.",
120 "memberOf" : "Roo.grid.ColumnModel",
126 "desc" : "(Optional) can be '0' for hidden at this size (number less than 12)",
127 "memberOf" : "Roo.grid.ColumnModel",
133 "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",
134 "memberOf" : "Roo.grid.ColumnModel",
140 "desc" : "(Optional) can be '0' for hidden at this size (number less than 12)",
141 "memberOf" : "Roo.grid.ColumnModel",
147 "desc" : "Header at Bootsrap Extra Small width (default for all)",
148 "memberOf" : "Roo.grid.ColumnModel",
154 "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}.",
155 "memberOf" : "Roo.grid.ColumnModel",
161 "desc" : "The header text to display in the Grid view.",
162 "memberOf" : "Roo.grid.ColumnModel",
168 "desc" : "(Optional) The initial width in pixels of the column. Using this\ninstead of {@link Roo.grid.Grid#autoSizeColumns} is more efficient.",
169 "memberOf" : "Roo.grid.ColumnModel",
173 "name" : "resizable",
175 "desc" : "(Optional) False to disable column resizing. Defaults to true.",
176 "memberOf" : "Roo.grid.ColumnModel",
182 "desc" : "(Optional) can be '0' for hidden at this size (number less than 12)",
183 "memberOf" : "Roo.grid.ColumnModel",
187 "name" : "dataIndex",
189 "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.",
190 "memberOf" : "Roo.grid.ColumnModel",
196 "desc" : "(Optional) can be '0' for hidden at this size (number less than 12)",
197 "memberOf" : "Roo.grid.ColumnModel",
203 "name" : "setRenderer",
204 "desc" : "Sets the rendering (formatting) function for a column.",
206 "isConstructor" : false,
208 "memberOf" : "Roo.grid.ColumnModel",
217 "desc" : "The column index",
223 "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>",
231 "desc" : "Returns true if the column is hidden.",
233 "isConstructor" : false,
235 "memberOf" : "Roo.grid.ColumnModel",
244 "desc" : "The column index",
257 "name" : "setColumnHeader",
258 "desc" : "Sets the header for a column.",
260 "isConstructor" : false,
262 "memberOf" : "Roo.grid.ColumnModel",
271 "desc" : "The column index",
277 "desc" : "The new header",
284 "name" : "getColumnCount",
285 "desc" : "Returns the number of columns.",
287 "isConstructor" : false,
289 "memberOf" : "Roo.grid.ColumnModel",
304 "name" : "addColumn",
305 "desc" : "Add a column (experimental...) - defaults to adding to the end..",
307 "isConstructor" : false,
309 "memberOf" : "Roo.grid.ColumnModel",
325 "name" : "getColumnHeader",
326 "desc" : "Returns the header for the specified column.",
328 "isConstructor" : false,
330 "memberOf" : "Roo.grid.ColumnModel",
339 "desc" : "The column index",
352 "name" : "getRenderer",
353 "desc" : "Returns the rendering (formatting) function defined for the column.",
355 "isConstructor" : false,
357 "memberOf" : "Roo.grid.ColumnModel",
366 "desc" : "The column index.",
374 "desc" : "The function used to render the cell. See {@link #setRenderer}."
379 "name" : "getColumnTooltip",
380 "desc" : "Returns the tooltip for the specified column.",
382 "isConstructor" : false,
384 "memberOf" : "Roo.grid.ColumnModel",
393 "desc" : "The column index",
406 "name" : "setColumnWidth",
407 "desc" : "Sets the width for a column.",
409 "isConstructor" : false,
411 "memberOf" : "Roo.grid.ColumnModel",
420 "desc" : "The column index",
426 "desc" : "The new width",
433 "name" : "setDataIndex",
434 "desc" : "Sets the dataIndex for a column.",
436 "isConstructor" : false,
438 "memberOf" : "Roo.grid.ColumnModel",
447 "desc" : "The column index",
451 "name" : "dataIndex",
453 "desc" : "The new dataIndex",
460 "name" : "isCellEditable",
461 "desc" : "Returns true if the cell is editable.",
463 "isConstructor" : false,
465 "memberOf" : "Roo.grid.ColumnModel",
474 "desc" : "The column index",
480 "desc" : "The row index - this is nto actually used..?",
493 "name" : "getColumnsBy",
494 "desc" : "Returns the column configs that return true by the passed function that is called with (columnConfig, index)",
496 "isConstructor" : false,
498 "memberOf" : "Roo.grid.ColumnModel",
513 "desc" : "(optional)",
526 "name" : "getColumnWidth",
527 "desc" : "Returns the width for the specified column.",
529 "isConstructor" : false,
531 "memberOf" : "Roo.grid.ColumnModel",
540 "desc" : "The column index",
544 "name" : "(optional)",
546 "desc" : "{String} gridSize bootstrap width size.",
560 "desc" : "Returns true if the column width cannot be changed",
562 "isConstructor" : false,
564 "memberOf" : "Roo.grid.ColumnModel",
573 "name" : "getCellEditor",
574 "desc" : "Returns the editor defined for the cell/column.\nreturn false or null to disable editing.",
576 "isConstructor" : false,
578 "memberOf" : "Roo.grid.ColumnModel",
587 "desc" : "The column index",
593 "desc" : "The row index",
606 "name" : "getColumnId",
607 "desc" : "Returns the id of the column at the specified index.",
609 "isConstructor" : false,
611 "memberOf" : "Roo.grid.ColumnModel",
620 "desc" : "The column index",
633 "name" : "getDataIndex",
634 "desc" : "Returns the dataIndex for the specified column.",
636 "isConstructor" : false,
638 "memberOf" : "Roo.grid.ColumnModel",
647 "desc" : "The column index",
660 "name" : "isResizable",
661 "desc" : "Returns true if the column can be resized",
663 "isConstructor" : false,
665 "memberOf" : "Roo.grid.ColumnModel",
680 "name" : "setColumnTooltip",
681 "desc" : "Sets the tooltip for a column.",
683 "isConstructor" : false,
685 "memberOf" : "Roo.grid.ColumnModel",
694 "desc" : "The column index",
700 "desc" : "The new tooltip",
707 "name" : "setHidden",
708 "desc" : "Sets if a column is hidden.",
710 "isConstructor" : false,
712 "memberOf" : "Roo.grid.ColumnModel",
721 "desc" : "The column index",
727 "desc" : "True if the column is hidden",
734 "name" : "setEditable",
735 "desc" : "Sets if a column is editable.",
737 "isConstructor" : false,
739 "memberOf" : "Roo.grid.ColumnModel",
748 "desc" : "The column index",
754 "desc" : "True if the column is editable",
761 "name" : "getColumnById",
762 "desc" : "Returns the column for a specified id.",
764 "isConstructor" : false,
766 "memberOf" : "Roo.grid.ColumnModel",
775 "desc" : "The column id",
783 "desc" : "the column"
788 "name" : "getColumnByDataIndex",
789 "desc" : "Returns the column Object for a specified dataIndex.",
791 "isConstructor" : false,
793 "memberOf" : "Roo.grid.ColumnModel",
800 "name" : "dataIndex",
802 "desc" : "The column dataIndex",
809 "type" : "Object|Boolean",
810 "desc" : "the column or false if not found"
815 "name" : "setEditor",
816 "desc" : "Sets the editor for a column.",
818 "isConstructor" : false,
820 "memberOf" : "Roo.grid.ColumnModel",
829 "desc" : "The column index",
835 "desc" : "The editor object",
842 "name" : "findColumnIndex",
843 "desc" : "Returns the index for a specified column dataIndex.",
845 "isConstructor" : false,
847 "memberOf" : "Roo.grid.ColumnModel",
854 "name" : "dataIndex",
856 "desc" : "The column dataIndex",
864 "desc" : "the index, or -1 if not found"
869 "name" : "isSortable",
870 "desc" : "Returns true if the specified column is sortable.",
872 "isConstructor" : false,
874 "memberOf" : "Roo.grid.ColumnModel",
883 "desc" : "The column index",
896 "name" : "getIndexById",
897 "desc" : "Returns the index for a specified column id.",
899 "isConstructor" : false,
901 "memberOf" : "Roo.grid.ColumnModel",
910 "desc" : "The column id",
918 "desc" : "the index, or -1 if not found"
923 "name" : "getTotalWidth",
924 "desc" : "Returns the total width of all columns.",
926 "isConstructor" : false,
928 "memberOf" : "Roo.grid.ColumnModel",
935 "name" : "includeHidden",
937 "desc" : "True to include hidden column widths",
950 "name" : "purgeListeners",
951 "desc" : "Removes all listeners for this object",
953 "isConstructor" : false,
955 "memberOf" : "Roo.util.Observable",
965 "desc" : "Appends an event handler to this element (shorthand for addListener)",
967 "isConstructor" : false,
969 "memberOf" : "Roo.util.Observable",
976 "name" : "eventName",
978 "desc" : "The type of event to listen for",
984 "desc" : "The method the event invokes",
990 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
996 "desc" : "(optional)",
1004 "desc" : "Removes a listener (shorthand for removeListener)",
1006 "isConstructor" : false,
1007 "isPrivate" : false,
1008 "memberOf" : "Roo.util.Observable",
1015 "name" : "eventName",
1017 "desc" : "The type of event to listen for",
1018 "isOptional" : false
1022 "type" : "Function",
1023 "desc" : "The handler to remove",
1024 "isOptional" : false
1029 "desc" : "(optional) The scope (this object) for the handler",
1030 "isOptional" : false
1036 "name" : "addEvents",
1037 "desc" : "Used to define events on this Observable",
1039 "isConstructor" : false,
1040 "isPrivate" : false,
1041 "memberOf" : "Roo.util.Observable",
1050 "desc" : "The object with the events defined",
1051 "isOptional" : false
1057 "name" : "releaseCapture",
1058 "desc" : "Removes <b>all</b> added captures from the Observable.",
1060 "isConstructor" : false,
1061 "isPrivate" : false,
1062 "memberOf" : "Roo.util.Observable",
1070 "type" : "Observable",
1071 "desc" : "The Observable to release",
1072 "isOptional" : false
1078 "name" : "removeListener",
1079 "desc" : "Removes a listener",
1081 "isConstructor" : false,
1082 "isPrivate" : false,
1083 "memberOf" : "Roo.util.Observable",
1090 "name" : "eventName",
1092 "desc" : "The type of event to listen for",
1093 "isOptional" : false
1097 "type" : "Function",
1098 "desc" : "The handler to remove",
1099 "isOptional" : false
1104 "desc" : "(optional) The scope (this object) for the handler",
1105 "isOptional" : false
1111 "name" : "fireEvent",
1112 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
1114 "isConstructor" : false,
1115 "isPrivate" : false,
1116 "memberOf" : "Roo.util.Observable",
1123 "name" : "eventName",
1126 "isOptional" : false
1130 "type" : "Object...",
1131 "desc" : "Variable number of parameters are passed to handlers",
1132 "isOptional" : false
1139 "desc" : "returns false if any of the handlers return false otherwise it returns true"
1144 "name" : "hasListener",
1145 "desc" : "Checks to see if this object has any listeners for a specified event",
1147 "isConstructor" : false,
1148 "isPrivate" : false,
1149 "memberOf" : "Roo.util.Observable",
1156 "name" : "eventName",
1158 "desc" : "The name of the event to check for",
1159 "isOptional" : false
1166 "desc" : "True if the event is being listened for, else false"
1172 "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.",
1174 "isConstructor" : false,
1175 "isPrivate" : false,
1176 "memberOf" : "Roo.util.Observable",
1184 "type" : "Observable",
1185 "desc" : "The Observable to capture",
1186 "isOptional" : false
1190 "type" : "Function",
1191 "desc" : "The function to call",
1192 "isOptional" : false
1197 "desc" : "(optional) The scope (this object) for the fn",
1198 "isOptional" : false
1204 "name" : "addListener",
1205 "desc" : "Appends an event handler to this component",
1207 "isConstructor" : false,
1208 "isPrivate" : false,
1209 "memberOf" : "Roo.util.Observable",
1216 "name" : "eventName",
1218 "desc" : "The type of event to listen for",
1219 "isOptional" : false
1223 "type" : "Function",
1224 "desc" : "The method the event invokes",
1225 "isOptional" : false
1230 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
1231 "isOptional" : false
1236 "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>",
1237 "isOptional" : false
1245 "name" : "hiddenchange",
1246 "desc" : "Fires when a column is hidden or \"unhidden\".",
1247 "memberOf" : "Roo.grid.ColumnModel",
1255 "type" : "ColumnModel",
1257 "isOptional" : false
1260 "name" : "columnIndex",
1262 "desc" : "The column index",
1263 "isOptional" : false
1268 "desc" : "true if hidden, false otherwise",
1269 "isOptional" : false
1275 "name" : "headerchange",
1276 "desc" : "Fires when the text of a header changes.",
1277 "memberOf" : "Roo.grid.ColumnModel",
1285 "type" : "ColumnModel",
1287 "isOptional" : false
1290 "name" : "columnIndex",
1292 "desc" : "The column index",
1293 "isOptional" : false
1298 "desc" : "The new header text",
1299 "isOptional" : false
1305 "name" : "columlockchange",
1306 "desc" : "Fires when a column's locked state is changed",
1307 "memberOf" : "Roo.grid.ColumnModel",
1315 "type" : "ColumnModel",
1317 "isOptional" : false
1320 "name" : "colIndex",
1323 "isOptional" : false
1328 "desc" : "true if locked",
1329 "isOptional" : false
1335 "name" : "columnmoved",
1336 "desc" : "Fires when a column is moved.",
1337 "memberOf" : "Roo.grid.ColumnModel",
1345 "type" : "ColumnModel",
1347 "isOptional" : false
1350 "name" : "oldIndex",
1353 "isOptional" : false
1356 "name" : "newIndex",
1359 "isOptional" : false
1365 "name" : "widthchange",
1366 "desc" : "Fires when the width of a column changes.",
1367 "memberOf" : "Roo.grid.ColumnModel",
1375 "type" : "ColumnModel",
1377 "isOptional" : false
1380 "name" : "columnIndex",
1382 "desc" : "The column index",
1383 "isOptional" : false
1386 "name" : "newWidth",
1388 "desc" : "The new width",
1389 "isOptional" : false