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.",
27 "type" : "Roo.grid.GridEditor",
28 "desc" : "(Optional) For grid editors - returns the grid editor",
29 "memberOf" : "Roo.grid.ColumnModel",
35 "desc" : "(Optional)",
36 "memberOf" : "Roo.grid.ColumnModel",
42 "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>",
43 "memberOf" : "Roo.util.Observable",
49 "desc" : "(Optional)",
50 "memberOf" : "Roo.grid.ColumnModel",
56 "desc" : "(Optional)",
57 "memberOf" : "Roo.grid.ColumnModel",
63 "desc" : "(Optional) Set the CSS text-align property of the column. Defaults to undefined.",
64 "memberOf" : "Roo.grid.ColumnModel",
70 "desc" : "(Optional) True if the column width cannot be changed. Defaults to false.",
71 "memberOf" : "Roo.grid.ColumnModel",
77 "desc" : "(Optional) True to hide the column. Defaults to false.",
78 "memberOf" : "Roo.grid.ColumnModel",
84 "desc" : "(Optional) Set the CSS vertical-align property of the column (eg. middle, top, bottom etc). Defaults to undefined.",
85 "memberOf" : "Roo.grid.ColumnModel",
91 "desc" : "(Optional) True to lock the column in place while scrolling the Grid. Defaults to false.",
92 "memberOf" : "Roo.grid.ColumnModel",
98 "desc" : "(Optional)",
99 "memberOf" : "Roo.grid.ColumnModel",
105 "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",
106 "memberOf" : "Roo.grid.ColumnModel",
112 "desc" : "(Optional)",
113 "memberOf" : "Roo.grid.ColumnModel",
119 "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}.",
120 "memberOf" : "Roo.grid.ColumnModel",
126 "desc" : "(Optional) The initial width in pixels of the column. Using this\ninstead of {@link Roo.grid.Grid#autoSizeColumns} is more efficient.",
127 "memberOf" : "Roo.grid.ColumnModel",
133 "desc" : "The header text to display in the Grid view.",
134 "memberOf" : "Roo.grid.ColumnModel",
138 "name" : "resizable",
140 "desc" : "(Optional) False to disable column resizing. Defaults to true.",
141 "memberOf" : "Roo.grid.ColumnModel",
145 "name" : "dataIndex",
147 "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.",
148 "memberOf" : "Roo.grid.ColumnModel",
154 "desc" : "(Optional)",
155 "memberOf" : "Roo.grid.ColumnModel",
161 "name" : "setRenderer",
162 "desc" : "Sets the rendering (formatting) function for a column.",
164 "isConstructor" : false,
166 "memberOf" : "Roo.grid.ColumnModel",
175 "desc" : "The column index",
181 "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>",
189 "desc" : "Returns true if the column is hidden.",
191 "isConstructor" : false,
193 "memberOf" : "Roo.grid.ColumnModel",
202 "desc" : "The column index",
215 "name" : "setColumnHeader",
216 "desc" : "Sets the header for a column.",
218 "isConstructor" : false,
220 "memberOf" : "Roo.grid.ColumnModel",
229 "desc" : "The column index",
235 "desc" : "The new header",
242 "name" : "getColumnCount",
243 "desc" : "Returns the number of columns.",
245 "isConstructor" : false,
247 "memberOf" : "Roo.grid.ColumnModel",
262 "name" : "addColumn",
263 "desc" : "Add a column (experimental...) - defaults to adding to the end..",
265 "isConstructor" : false,
267 "memberOf" : "Roo.grid.ColumnModel",
283 "name" : "getColumnHeader",
284 "desc" : "Returns the header for the specified column.",
286 "isConstructor" : false,
288 "memberOf" : "Roo.grid.ColumnModel",
297 "desc" : "The column index",
310 "name" : "getRenderer",
311 "desc" : "Returns the rendering (formatting) function defined for the column.",
313 "isConstructor" : false,
315 "memberOf" : "Roo.grid.ColumnModel",
324 "desc" : "The column index.",
332 "desc" : "The function used to render the cell. See {@link #setRenderer}."
337 "name" : "getColumnTooltip",
338 "desc" : "Returns the tooltip for the specified column.",
340 "isConstructor" : false,
342 "memberOf" : "Roo.grid.ColumnModel",
351 "desc" : "The column index",
364 "name" : "setColumnWidth",
365 "desc" : "Sets the width for a column.",
367 "isConstructor" : false,
369 "memberOf" : "Roo.grid.ColumnModel",
378 "desc" : "The column index",
384 "desc" : "The new width",
391 "name" : "setDataIndex",
392 "desc" : "Sets the dataIndex for a column.",
394 "isConstructor" : false,
396 "memberOf" : "Roo.grid.ColumnModel",
405 "desc" : "The column index",
409 "name" : "dataIndex",
411 "desc" : "The new dataIndex",
418 "name" : "isCellEditable",
419 "desc" : "Returns true if the cell is editable.",
421 "isConstructor" : false,
423 "memberOf" : "Roo.grid.ColumnModel",
432 "desc" : "The column index",
438 "desc" : "The row index - this is nto actually used..?",
451 "name" : "getColumnsBy",
452 "desc" : "Returns the column configs that return true by the passed function that is called with (columnConfig, index)",
454 "isConstructor" : false,
456 "memberOf" : "Roo.grid.ColumnModel",
471 "desc" : "(optional)",
484 "name" : "getColumnWidth",
485 "desc" : "Returns the width for the specified column.",
487 "isConstructor" : false,
489 "memberOf" : "Roo.grid.ColumnModel",
498 "desc" : "The column index",
512 "desc" : "Returns true if the column width cannot be changed",
514 "isConstructor" : false,
516 "memberOf" : "Roo.grid.ColumnModel",
525 "name" : "getCellEditor",
526 "desc" : "Returns the editor defined for the cell/column.\nreturn false or null to disable editing.",
528 "isConstructor" : false,
530 "memberOf" : "Roo.grid.ColumnModel",
539 "desc" : "The column index",
545 "desc" : "The row index",
558 "name" : "getColumnId",
559 "desc" : "Returns the id of the column at the specified index.",
561 "isConstructor" : false,
563 "memberOf" : "Roo.grid.ColumnModel",
572 "desc" : "The column index",
585 "name" : "getDataIndex",
586 "desc" : "Returns the dataIndex for the specified column.",
588 "isConstructor" : false,
590 "memberOf" : "Roo.grid.ColumnModel",
599 "desc" : "The column index",
612 "name" : "isResizable",
613 "desc" : "Returns true if the column can be resized",
615 "isConstructor" : false,
617 "memberOf" : "Roo.grid.ColumnModel",
632 "name" : "setColumnTooltip",
633 "desc" : "Sets the tooltip for a column.",
635 "isConstructor" : false,
637 "memberOf" : "Roo.grid.ColumnModel",
646 "desc" : "The column index",
652 "desc" : "The new tooltip",
659 "name" : "setHidden",
660 "desc" : "Sets if a column is hidden.",
662 "isConstructor" : false,
664 "memberOf" : "Roo.grid.ColumnModel",
673 "desc" : "The column index",
679 "desc" : "True if the column is hidden",
686 "name" : "setEditable",
687 "desc" : "Sets if a column is editable.",
689 "isConstructor" : false,
691 "memberOf" : "Roo.grid.ColumnModel",
700 "desc" : "The column index",
706 "desc" : "True if the column is editable",
713 "name" : "getColumnById",
714 "desc" : "Returns the column for a specified id.",
716 "isConstructor" : false,
718 "memberOf" : "Roo.grid.ColumnModel",
727 "desc" : "The column id",
735 "desc" : "the column"
740 "name" : "getColumnByDataIndex",
741 "desc" : "Returns the column Object for a specified dataIndex.",
743 "isConstructor" : false,
745 "memberOf" : "Roo.grid.ColumnModel",
752 "name" : "dataIndex",
754 "desc" : "The column dataIndex",
761 "type" : "Object|Boolean",
762 "desc" : "the column or false if not found"
767 "name" : "setEditor",
768 "desc" : "Sets the editor for a column.",
770 "isConstructor" : false,
772 "memberOf" : "Roo.grid.ColumnModel",
781 "desc" : "The column index",
787 "desc" : "The editor object",
794 "name" : "findColumnIndex",
795 "desc" : "Returns the index for a specified column dataIndex.",
797 "isConstructor" : false,
799 "memberOf" : "Roo.grid.ColumnModel",
806 "name" : "dataIndex",
808 "desc" : "The column dataIndex",
816 "desc" : "the index, or -1 if not found"
821 "name" : "isSortable",
822 "desc" : "Returns true if the specified column is sortable.",
824 "isConstructor" : false,
826 "memberOf" : "Roo.grid.ColumnModel",
835 "desc" : "The column index",
848 "name" : "getIndexById",
849 "desc" : "Returns the index for a specified column id.",
851 "isConstructor" : false,
853 "memberOf" : "Roo.grid.ColumnModel",
862 "desc" : "The column id",
870 "desc" : "the index, or -1 if not found"
875 "name" : "getTotalWidth",
876 "desc" : "Returns the total width of all columns.",
878 "isConstructor" : false,
880 "memberOf" : "Roo.grid.ColumnModel",
887 "name" : "includeHidden",
889 "desc" : "True to include hidden column widths",
902 "name" : "purgeListeners",
903 "desc" : "Removes all listeners for this object",
905 "isConstructor" : false,
907 "memberOf" : "Roo.util.Observable",
917 "desc" : "Appends an event handler to this element (shorthand for addListener)",
919 "isConstructor" : false,
921 "memberOf" : "Roo.util.Observable",
928 "name" : "eventName",
930 "desc" : "The type of event to listen for",
936 "desc" : "The method the event invokes",
942 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
948 "desc" : "(optional)",
956 "desc" : "Removes a listener (shorthand for removeListener)",
958 "isConstructor" : false,
960 "memberOf" : "Roo.util.Observable",
967 "name" : "eventName",
969 "desc" : "The type of event to listen for",
975 "desc" : "The handler to remove",
981 "desc" : "(optional) The scope (this object) for the handler",
988 "name" : "addEvents",
989 "desc" : "Used to define events on this Observable",
991 "isConstructor" : false,
993 "memberOf" : "Roo.util.Observable",
1002 "desc" : "The object with the events defined",
1003 "isOptional" : false
1009 "name" : "releaseCapture",
1010 "desc" : "Removes <b>all</b> added captures from the Observable.",
1012 "isConstructor" : false,
1013 "isPrivate" : false,
1014 "memberOf" : "Roo.util.Observable",
1022 "type" : "Observable",
1023 "desc" : "The Observable to release",
1024 "isOptional" : false
1030 "name" : "removeListener",
1031 "desc" : "Removes a listener",
1033 "isConstructor" : false,
1034 "isPrivate" : false,
1035 "memberOf" : "Roo.util.Observable",
1042 "name" : "eventName",
1044 "desc" : "The type of event to listen for",
1045 "isOptional" : false
1049 "type" : "Function",
1050 "desc" : "The handler to remove",
1051 "isOptional" : false
1056 "desc" : "(optional) The scope (this object) for the handler",
1057 "isOptional" : false
1063 "name" : "fireEvent",
1064 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
1066 "isConstructor" : false,
1067 "isPrivate" : false,
1068 "memberOf" : "Roo.util.Observable",
1075 "name" : "eventName",
1078 "isOptional" : false
1082 "type" : "Object...",
1083 "desc" : "Variable number of parameters are passed to handlers",
1084 "isOptional" : false
1091 "desc" : "returns false if any of the handlers return false otherwise it returns true"
1096 "name" : "hasListener",
1097 "desc" : "Checks to see if this object has any listeners for a specified event",
1099 "isConstructor" : false,
1100 "isPrivate" : false,
1101 "memberOf" : "Roo.util.Observable",
1108 "name" : "eventName",
1110 "desc" : "The name of the event to check for",
1111 "isOptional" : false
1118 "desc" : "True if the event is being listened for, else false"
1124 "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.",
1126 "isConstructor" : false,
1127 "isPrivate" : false,
1128 "memberOf" : "Roo.util.Observable",
1136 "type" : "Observable",
1137 "desc" : "The Observable to capture",
1138 "isOptional" : false
1142 "type" : "Function",
1143 "desc" : "The function to call",
1144 "isOptional" : false
1149 "desc" : "(optional) The scope (this object) for the fn",
1150 "isOptional" : false
1156 "name" : "addListener",
1157 "desc" : "Appends an event handler to this component",
1159 "isConstructor" : false,
1160 "isPrivate" : false,
1161 "memberOf" : "Roo.util.Observable",
1168 "name" : "eventName",
1170 "desc" : "The type of event to listen for",
1171 "isOptional" : false
1175 "type" : "Function",
1176 "desc" : "The method the event invokes",
1177 "isOptional" : false
1182 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
1183 "isOptional" : false
1188 "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>",
1189 "isOptional" : false
1197 "name" : "hiddenchange",
1198 "desc" : "Fires when a column is hidden or \"unhidden\".",
1199 "memberOf" : "Roo.grid.ColumnModel",
1207 "type" : "ColumnModel",
1209 "isOptional" : false
1212 "name" : "columnIndex",
1214 "desc" : "The column index",
1215 "isOptional" : false
1220 "desc" : "true if hidden, false otherwise",
1221 "isOptional" : false
1227 "name" : "headerchange",
1228 "desc" : "Fires when the text of a header changes.",
1229 "memberOf" : "Roo.grid.ColumnModel",
1237 "type" : "ColumnModel",
1239 "isOptional" : false
1242 "name" : "columnIndex",
1244 "desc" : "The column index",
1245 "isOptional" : false
1250 "desc" : "The new header text",
1251 "isOptional" : false
1257 "name" : "columlockchange",
1258 "desc" : "Fires when a column's locked state is changed",
1259 "memberOf" : "Roo.grid.ColumnModel",
1267 "type" : "ColumnModel",
1269 "isOptional" : false
1272 "name" : "colIndex",
1275 "isOptional" : false
1280 "desc" : "true if locked",
1281 "isOptional" : false
1287 "name" : "columnmoved",
1288 "desc" : "Fires when a column is moved.",
1289 "memberOf" : "Roo.grid.ColumnModel",
1297 "type" : "ColumnModel",
1299 "isOptional" : false
1302 "name" : "oldIndex",
1305 "isOptional" : false
1308 "name" : "newIndex",
1311 "isOptional" : false
1317 "name" : "widthchange",
1318 "desc" : "Fires when the width of a column changes.",
1319 "memberOf" : "Roo.grid.ColumnModel",
1327 "type" : "ColumnModel",
1329 "isOptional" : false
1332 "name" : "columnIndex",
1334 "desc" : "The column index",
1335 "isOptional" : false
1338 "name" : "newWidth",
1340 "desc" : "The new width",
1341 "isOptional" : false