ext.grid.columnmodel.html.svn-base
来自「PHP 知识管理系统(基于树结构的知识管理系统), 英文原版的PHP源码。」· SVN-BASE 代码 · 共 1,171 行 · 第 1/5 页
SVN-BASE
1,171 行
<a id="Ext.grid.ColumnModel-setConfig"></a>
<b>setConfig</b>( <code>Array config</code> ) : void <div class="mdesc">
<div class="short">Reconfigures this column model</div>
<div class="long">
Reconfigures this column model <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>config</code> : Array<div class="sub-desc">Array of Column configs</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">ColumnModel</td>
</tr>
<tr class="method-row alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.grid.ColumnModel-setDataIndex"></a>
<b>setDataIndex</b>( <code>Number col</code>, <code>String dataIndex</code> ) : void <div class="mdesc">
<div class="short">Sets the dataIndex for a column.</div>
<div class="long">
Sets the dataIndex for a column. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>col</code> : Number<div class="sub-desc">The column index</div></li><li><code>dataIndex</code> : String<div class="sub-desc">The new dataIndex</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">ColumnModel</td>
</tr>
<tr class="method-row expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.grid.ColumnModel-setEditable"></a>
<b>setEditable</b>( <code>Number col</code>, <code>Boolean editable</code> ) : void <div class="mdesc">
<div class="short">Sets if a column is editable.</div>
<div class="long">
Sets if a column is editable. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>col</code> : Number<div class="sub-desc">The column index</div></li><li><code>editable</code> : Boolean<div class="sub-desc">True if the column is editable</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">ColumnModel</td>
</tr>
<tr class="method-row alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.grid.ColumnModel-setEditor"></a>
<b>setEditor</b>( <code>Number col</code>, <code>Object editor</code> ) : void <div class="mdesc">
<div class="short">Sets the editor for a column.</div>
<div class="long">
Sets the editor for a column. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>col</code> : Number<div class="sub-desc">The column index</div></li><li><code>editor</code> : Object<div class="sub-desc">The editor object</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">ColumnModel</td>
</tr>
<tr class="method-row expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.grid.ColumnModel-setHidden"></a>
<b>setHidden</b>( <code>Number colIndex</code>, <code>Boolean hidden</code> ) : void <div class="mdesc">
<div class="short">Sets if a column is hidden.</div>
<div class="long">
Sets if a column is hidden. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>colIndex</code> : Number<div class="sub-desc">The column index</div></li><li><code>hidden</code> : Boolean<div class="sub-desc">True if the column is hidden</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">ColumnModel</td>
</tr>
<tr class="method-row alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.grid.ColumnModel-setRenderer"></a>
<b>setRenderer</b>( <code>Number col</code>, <code>Function fn</code> ) : void <div class="mdesc">
<div class="short">Sets the rendering (formatting) function for a column. See <a ext:cls="Ext.util.Format" href="output/Ext.util.Format.html">Ext.util.Format</a> for somedefault formatting functions.</div>
<div class="long">
Sets the rendering (formatting) function for a column. See <a ext:cls="Ext.util.Format" href="output/Ext.util.Format.html">Ext.util.Format</a> for somedefault formatting functions. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>col</code> : Number<div class="sub-desc">The column index</div></li><li><code>fn</code> : Function<div class="sub-desc">The function to use to process the cell's raw datato return HTML markup for the grid view. The render function is called withthe following parameters:<ul><li><b>value</b> : Object<p class="sub-desc">The data value for the cell.</p></li><li><b>metadata</b> : Object<p class="sub-desc">An object in which you may set the following attributes:<ul><li><b>css</b> : String<p class="sub-desc">A CSS class name to add to the cell's TD element.</p></li><li><b>attr</b> : String<p class="sub-desc">An HTML attribute definition string to apply to the data container element <i>within</i> the table cell(e.g. 'style="color:red;"').</p></li></ul></p></li><li><b>record</b> : Ext.data.record<p class="sub-desc">The <a ext:cls="Ext.data.Record" href="output/Ext.data.Record.html">Ext.data.Record</a> from which the data was extracted.</p></li><li><b>rowIndex</b> : Number<p class="sub-desc">Row index</p></li><li><b>colIndex</b> : Number<p class="sub-desc">Column index</p></li><li><b>store</b> : Ext.data.Store<p class="sub-desc">The <a ext:cls="Ext.data.Store" href="output/Ext.data.Store.html">Ext.data.Store</a> object from which the Record was extracted.</p></li></ul></div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">ColumnModel</td>
</tr>
<tr class="method-row inherited expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.grid.ColumnModel-suspendEvents"></a>
<b>suspendEvents</b>() : void <div class="mdesc">
<div class="short">Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>)</div>
<div class="long">
Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>) <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li>None.</li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">Observable</a></td>
</tr>
<tr class="method-row inherited alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.grid.ColumnModel-un"></a>
<b>un</b>( <code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : void <div class="mdesc">
<div class="short">Removes a listener (shorthand for removeListener)</div>
<div class="long">
Removes a listener (shorthand for removeListener) <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#un" href="output/Ext.util.Observable.html#un">Observable</a></td>
</tr>
</table> <a id="Ext.grid.ColumnModel-events"></a> <h2>Public Events</h2> <table cellspacing="0" class="member-table"> <tr> <th class="sig-header" colspan="2">Event</th> <th class="msource-header">Defined By</th> </tr> <tr class="event-row expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.grid.ColumnModel-columnmoved"></a>
<b>columnmoved</b> : ( <code>ColumnModel this</code>, <code>Number oldIndex</code>, <code>Number newIndex</code> ) <div class="mdesc">
<div class="short">Fires when a column is moved.</div>
<div class="long">
Fires when a column is moved. <div class="mdetail-params">
<strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
<ul><li><code>this</code> : ColumnModel<div class="sub-desc"></div></li><li><code>oldIndex</code> : Number<div class="sub-desc"></div></li><li><code>newIndex</code> : Number<div class="sub-desc"></div></li> </ul>
</div>
</div>
</div>
</td>
<td class="msource">ColumnModel</td>
</tr>
<tr class="event-row alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.grid.ColumnModel-configchanged"></a>
<b>configchanged</b> : ( <code>ColumnModel this</code> ) <div class="mdesc">
<div class="short">Fires when the configuration is changed</div>
<div class="long">
Fires when the configuration is changed <div class="mdetail-params">
<strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
<ul><li><code>this</code> : ColumnModel<div class="sub-desc"></div></li> </ul>
</div>
</div>
</div>
</td>
<td class="msource">ColumnModel</td>
</tr>
<tr class="event-row expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.grid.ColumnModel-headerchange"></a>
<b>headerchange</b> : ( <code>ColumnModel this</code>, <code>Number columnIndex</code>, <code>String newText</code> ) <div class="mdesc">
<div class="short">Fires when the text of a header changes.</div>
<div class="long">
Fires when the text of a header changes. <div class="mdetail-params">
<strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
<ul><li><code>this</code> : ColumnModel<div class="sub-desc"></div></li><li><code>columnIndex</code> : Number<div class="sub-desc">The column index</div></li><li><code>newText</code> : String<div class="sub-desc">The new header text</div></li> </ul>
</div>
</div>
</div>
</td>
<td class="msource">ColumnModel</td>
</tr>
<tr class="event-row alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.grid.ColumnModel-hiddenchange"></a>
<b>hiddenchange</b> : ( <code>ColumnModel this</code>, <code>Number columnIndex</code>, <code>Boolean hidden</code> )
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?