⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ext.grid.groupingview.html

📁 Ext中文API,学习ext的同志只要你学会ext里的一种控件后其实其他的就大同小异了
💻 HTML
📖 第 1 页 / 共 5 页
字号:
                                                GridView                                                </a>                                        </td>                </tr>                            <tr class="method-row expandable">                    <td class="micon">                        <a class="exi" href="#expand">&nbsp;</a>                    </td>                    <td class="sig">                        <!--ClassName--><a id="scrollOffset-scrollOffset"></a>                        <b>scrollOffset</b>                        (                                                                                    <code>                                    Record record,                                </code>                                                                                                                <code>                                    Number index,                                </code>                                                                                                                <code>                                    Object rowParams,                                </code>                                                                                                                <code>                                    Record record,                                </code>                                                                                                                <code>                                    Number index,                                </code>                                                                                                                <code>                                    <span class='optional'>[Object rowParams]</span>,                                </code>                                                                                                                <code>                                    Store ds                                </code>                                                    )                                                    : String                                                <div class="mdesc">                            <div class="short">                                 Override this function to apply cu...                             </div>                            <div class="long">                                 Override this function to apply custom CSS classes to rows during rendering.  You can also supply custom parameters to the row template for the current row to customize how it is rendered using the <b>rowParams</b> parameter.  This function should return the CSS class name (or empty string '' for none) that will be added to the row's wrapping div.  To apply multiple class names, simply return them space-delimited within the string (e.g., 'my-class another-class'). customization of various aspects of a body row, if applicable.  Note that this object will only be applied if <a href="###" onClick="alert('#enableRowBody');">#enableRowBody</a> = true, otherwise it will be ignored. The object may contain any of these properties:<ul> <li><code>body</code> : String <div class="sub-desc">An HTML fragment to be rendered as the cell's body content (defaults to '').</div></li> <li><code>bodyStyle</code> : String <div class="sub-desc">A CSS style string that will be applied to the row's TR style attribute (defaults to '').</div></li> <li><code>cols</code> : Number <div class="sub-desc">The column count to apply to the body row's TD colspan attribute (defaults to the current column count of the grid).</div></li> </ul> 重写该函数就会在渲染过程中修改每一行的CSS样式类。 同样地,你也可以通过制定行模板(row template)的参数修改当前行样式,达到控制行渲染的目的,这个参数是<b>rowParams</b>。 该函数应该返回一个CSS样式类的名称(如没有就空白字符串 ''),应用当行所在的div元素上。可支持定义多个样式类的名称,用空白字符分割开即可。如('my-class another-class') 传入到行模板(row template)的配置项对象,以便渲染过程中可控制每行的部分是怎么显示的(可选的)。  注意该对象只会在<a href="###" onClick="alert('#enableRowBody');">#enableRowBody</a> = true时有效,不然的话会被忽略。对象可以包含下例的属性: <ul> <li><code>body</code> : String <div class="sub-desc">渲染成为单元格内容部分的HTML判断(默认为'')。</div></li> <li><code>bodyStyle</code> : String <div class="sub-desc">加入到行所在TR元素的CSS样式(默认为'')</div></li> <li><code>cols</code> : Number <div class="sub-desc"> 列的数量,与body 行的TDcolspan属性紧密联系(默认为当前grid的列数)。</div></li> </ul> @method getRowClass                                <div class="mdetail-params">                                    <strong>参数项:</strong>                                    <ul>                                                                                    <li>                                                <code>                                                    record                                                </code> : Record                                                <div class="sub-desc">                                                    The <a href="###" onClick="alert('Ext.data.Record');">Ext.data.Record</a> corresponding to the current row                                                </div>                                            </li>                                                                                    <li>                                                <code>                                                    index                                                </code> : Number                                                <div class="sub-desc">                                                    The row index                                                </div>                                            </li>                                                                                    <li>                                                <code>                                                    rowParams                                                </code> : Object                                                <div class="sub-desc">                                                    A config object that is passed to the row template during rendering that allows                                                </div>                                            </li>                                                                                    <li>                                                <code>                                                    record                                                </code> : Record                                                <div class="sub-desc">                                                    当然行所关联的<a href="###" onClick="alert('Ext.data.Record');">Ext.data.Record</a>对象                                                </div>                                            </li>                                                                                    <li>                                                <code>                                                    index                                                </code> : Number                                                <div class="sub-desc">                                                    行索引                                                </div>                                            </li>                                                                                    <li>                                                <code>                                                    rowParams                                                </code> : Object                                                <div class="sub-desc">                                                                                                    </div>                                            </li>                                                                                    <li>                                                <code>                                                    ds                                                </code> : Store                                                <div class="sub-desc">                                                    The <a href="###" onClick="alert('Ext.data.Store');">Ext.data.Store</a> this grid is bound to 与此GRID所绑定的<a href="###" onClick="alert('Ext.data.Store');">Ext.data.Store</a>对象                                                </div>                                            </li>                                                                            </ul>                                    <b>返回:</b>                                    <ul>                                        <li>                                            <code>                                                String                                            </code>                                            a CSS class name to add to the row. 行新加入的样式类                                        </li>                                    </ul>                                </div>                            </div>                        </div>                    </td>                    <td class="msource">                                                    <!--如果这不是同个namespace下--><a ext:cls="Ext.grid.GridView" ext:member="#method-scrollOffset" href="output/Ext.grid.GridView.html#method-scrollOffset">                                                GridView                                                </a>                                        </td>                </tr>                            <tr class="method-row expandable">                    <td class="micon">                        <a class="exi" href="#expand">&nbsp;</a>                    </td>                    <td class="sig">                        <!--ClassName--><a id="getRow-getRow"></a>                        <b>getRow</b>                        (                                                                                    <code>                                    Number index                                </code>                                                    )                                                    : HtmlElement                                                <div class="mdesc">                            <div class="short">                                 指定一个行索引,返回该行的&lt;TR> HtmlElement                             </div>                            <div class="long">                                 指定一个行索引,返回该行的&lt;TR> HtmlElement                                <div class="mdetail-params">                                    <strong>参数项:</strong>                                    <ul>                                                                                    <li>                                                <code>                                                    index                                                </code> : Number                                                <div class="sub-desc">                                                    行索引                                                </div>                                            </li>                                                                            </ul>                                    <b>返回:</b>                                    <ul>                                        <li>                                            <code>                                                HtmlElement                                            </code>                                            &lt;TR>元素                                        </li>                                    </ul>                                </div>                            </div>                        </div>                    </td>                    <td class="msource">                                                    <!--如果这不是同个namespace下--><a ext:cls="Ext.grid.GridView" ext:member="#method-getRow" href="output/Ext.grid.GridView.html#method-getRow">                                                GridView                                                </a>                                        </td>                </tr>                            <tr class="method-row expandable">                    <td class="micon">                        <a class="exi" href="#expand">&nbsp;</a>                    </td>                    <td class="sig">                        <!--ClassName--><a id="getCell-getCell"></a>                        <b>getCell</b>                        (                                                                                    <code>                                    Number row,                                </code>                                                                                                                <code>                                    Number col                                </code>                                                    )                                                    : HtmlElement                                                <div class="mdesc">                            <div class="short">                                 指定一个单元格的坐标,返回该单元格的&lt;TD> HtmlElem...                             </div>                            <div class="long">                                 指定一个单元格的坐标,返回该单元格的&lt;TD> HtmlElement                                <div class="mdetail-params">                                    <strong>参数项:</strong>                                    <ul>                                                                                    <li>                                                <code>                                                    row                                                </code> : Number                                                <div class="sub-desc">                                                    定位单元格的行索引                                                </div>                                            </li>                                                                                    <li>                                                <code>     

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -