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

📄 ext.grid.cellselectionmodel.html

📁 Ext中文API,学习ext的同志只要你学会ext里的一种控件后其实其他的就大同小异了
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<!--Mock<link rel="stylesheet" type="text/css" href="http://localhost/ext/resources/css/ext-all.css" /><link rel="stylesheet" type="text/css" href="http://localhost/ext/doc/resources/docs.css"/><link rel="stylesheet" type="text/css" href="http://localhost/ext/doc/resources/style.css"/>--><style type="text/css">    body {        overflow: scroll;    }    /**	 .mdesc .long {        display: block;    }     */</style><!-- End Mock--><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><div class="body-wrap">    <div class="top-tools">        <a class="inner-link" href="#Ext.grid.CellSelectionModel-props"><img src="/images/s.gif" class="item-icon icon-prop">Properties</a><a class="inner-link" href="#Ext.grid.CellSelectionModel-methods"><img src="/images/s.gif" class="item-icon icon-method">Methods</a><a class="inner-link" href="#Ext.grid.CellSelectionModel-events"><img src="/images/s.gif" class="item-icon icon-event">Events</a><a class="inner-link" href="#Ext.grid.CellSelectionModel-configs"><img src="/images/s.gif" class="item-icon icon-config">Config Options</a><a class="bookmark" href="../docs/?class=Ext.grid.CellSelectionModel"><img src="/images/s.gif" class="item-icon icon-fav">Direct Link</a>    </div><h1>Class Ext.grid.CellSelectionModel</h1>    <table cellspacing="0">        <!--        <tr>        <td class="label">        Package:        </td>        <td class="hd-info">        </td>        </tr>        -->        <tr>            <td class="label">                Defined In:            </td>            <td class="hd-info">                CellSelectionModel.js            </td>        </tr>        <tr>            <td class="label">                Class:            </td>            <td class="hd-info">                Ext.grid.CellSelectionModel            </td>        </tr>        <tr>            <td class="label">                Extends:            </td>            <td class="hd-info">                Ext.grid.AbstractSelectionModel            </td>        </tr>    </table>    <div class="description">        本类提供了grid单元格选区的基本实现。  执行<a href="###" onClick="alert('getSelectedCell');">getSelectedCell</a>的方法返回一个选区对象,这个对象包含下列的属性:  <div class="mdetail-params"><ul>  <li><b>record</b> : Ext.data.record<p class="sub-desc">提供所选行中的 <a href="###" onClick="alert('Ext.data.Record');">Ext.data.Record</a>数据</p></li>  <li><b>cell</b> : Ext.data.record<p class="sub-desc">一个包含下列属性的对象:  <div class="mdetail-params"><ul>  <li><b>rowIndex</b> : Number<p class="sub-desc">选中行的索引</p></li>  <li><b>cellIndex</b> : Number<p class="sub-desc">选中单元格的索引<br>  <b>注意有时会因为列渲染的问题,单元格索引不应用于 Record数据的索引。  因此,应该使用当前的字段<i>名称</i>来获取数据值,如::</b><pre><code>    var fieldName = grid.getColumnModel().getDataIndex(cellIndex);    var data = record.get(fieldName);</code></pre></p></li>  </ul></div></p></li>  </ul></div    </div>    <div class="hr">    </div>    <a id="Ext.grid.CellSelectionModel-configs"></a>    <h2>配置项</h2>            <table cellspacing="0" class="member-table">            <tr>                <th class="sig-header" colspan="2">                    配置项                </th>                <th class="msource-header">                    定义者                </th>            </tr>                            <tr class="config-row expandable">                    <td class="micon">                        <a class="exi" href="#expand">&nbsp;</a>                    </td>                    <td class="sig">                        <a id="listeners-header"></a>                        <b>listeners</b>                        : Object                        <div class="mdesc">                            <div class="short">                                一个配置项对象,可方便在该对象初始化时便加入多个事件处理函数。 这应该...                             </div>                            <div class="long">                                一个配置项对象,可方便在该对象初始化时便加入多个事件处理函数。 这应该是一个如<a href="###" onClick="alert('#addListener');">#addListener</a>有效的配置项对象,即可一次过加入多个事件处理函数。                             </div>                        </div>                    </td>                    <td class="msource">                                                    <!--如果这不是同个namespace下-->							<a 	ext:cls="Ext.util.Observable" 								ext:member="#method-listeners" 								href="output/Ext.util.Observable.html#method-listeners">								Observable							</a>                                                                    </td>                </tr>                    </table>        	<a id="Ext.grid.CellSelectionModel-props"></a>    <h2>公告属性</h2>                这个类没有公告属性。        <a id="Ext.grid.CellSelectionModel-methods"></a>    <h2>公共方法</h2>            <table cellspacing="0" class="member-table">            <tr>                <th class="sig-header" colspan="2">                    方法                </th>                <th class="msource-header">                    定义者                </th>            </tr>                            <tr class="method-row expandable">                    <td class="micon">                        <a class="exi" href="#expand">&nbsp;</a>                    </td>                    <td class="sig">                        <!--ClassName--><a id="CellSelectionModel-CellSelectionModel"></a>                        <b>CellSelectionModel</b>                        (                                                                                    <code>                                    Object config                                </code>                                                    )                                                    : Ext.grid.CellSelectionModel                                                <div class="mdesc">                            <div class="short">                                构造器                             </div>                            <div class="long">                                构造器                                <div class="mdetail-params">                                    <strong>参数项:</strong>                                    <ul>                                                                                    <li>                                                <code>                                                    config                                                </code> : Object                                                <div class="sub-desc">                                                    针对该模型的配置对象。                                                </div>                                            </li>                                                                            </ul>                                    <b>返回:</b>                                    <ul>                                        <li>                                            <code>                                                Ext.grid.CellSelectionModel                                            </code>                                                                                    </li>                                    </ul>                                </div>                            </div>                        </div>                    </td>                    <td class="msource">                                                CellSelectionModel                                            </td>                </tr>                            <tr class="method-row expandable">                    <td class="micon">                        <a class="exi" href="#expand">&nbsp;</a>                    </td>                    <td class="sig">                        <!--ClassName--><a id="getSelectedCell-getSelectedCell"></a>                        <b>getSelectedCell</b>                        (                        )                                                    : Object                                                <div class="mdesc">                            <div class="short">                                 返回当前选中的单元格。                             </div>                            <div class="long">                                 返回当前选中的单元格。                                <div class="mdetail-params">                                    <strong>参数项:</strong>                                    <ul>                                                                            </ul>                                    <b>返回:</b>                                    <ul>                                        <li>                                            <code>                                                Object                                            </code>                                            选中的单元格,null就代表没选中                                        </li>                                    </ul>                                </div>                            </div>                        </div>                    </td>                    <td class="msource">                                                CellSelectionModel                                            </td>                </tr>                            <tr class="method-row expandable">                    <td class="micon">                        <a class="exi" href="#expand">&nbsp;</a>                    </td>                    <td class="sig">                        <!--ClassName--><a id="clearSelections-clearSelections"></a>                        <b>clearSelections</b>                        (                        )                                                <div class="mdesc">                            <div class="short">                                 清除所有选区。                             </div>                            <div class="long">                                 清除所有选区。                                <div class="mdetail-params">                                    <strong>参数项:</strong>                                    <ul>                                                                            </ul>                                    <b>返回:</b>                                    <ul>                                        <li>                                            <code>                                                void                                            </code>                                                                                    </li>                                    </ul>                                </div>                            </div>                        </div>                    </td>                    <td class="msource">                                                CellSelectionModel                                            </td>                </tr>                            <tr class="method-row expandable">                    <td class="micon">                        <a class="exi" href="#expand">&nbsp;</a>                    </td>                    <td class="sig">

⌨️ 快捷键说明

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