📄 ext.grid.gridview.html
字号:
<!--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.GridView-props"><img src="/images/s.gif" class="item-icon icon-prop">Properties</a><a class="inner-link" href="#Ext.grid.GridView-methods"><img src="/images/s.gif" class="item-icon icon-method">Methods</a><a class="inner-link" href="#Ext.grid.GridView-events"><img src="/images/s.gif" class="item-icon icon-event">Events</a><a class="inner-link" href="#Ext.grid.GridView-configs"><img src="/images/s.gif" class="item-icon icon-config">Config Options</a><a class="bookmark" href="../docs/?class=Ext.grid.GridView"><img src="/images/s.gif" class="item-icon icon-fav">Direct Link</a> </div><h1>Class Ext.grid.GridView</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"> GridView.js </td> </tr> <tr> <td class="label"> Class: </td> <td class="hd-info"> Ext.grid.GridView </td> </tr> <tr> <td class="label"> Extends: </td> <td class="hd-info"> Ext.util.Observable </td> </tr> </table> <div class="description"> <p>此类是对<a href="###" onClick="alert('Ext.grid.GridPanel');">Ext.grid.GridPanel</a>用户界面的封装,其方法能为达到特殊的显示效果而访问用户界面的某些元素。 请不要改变用户界面的DOM结构。</p> <p>此类不会提供途径来操控所属的数据。Grid所在的数据模型是由<a href="###" onClick="alert('Ext.data.Store');">Ext.data.Store</a>实现。</p </div> <div class="hr"> </div> <a id="Ext.grid.GridView-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"> </a> </td> <td class="sig"> <a id="enableRowBody-header"></a> <b>enableRowBody</b> : Boolean <div class="mdesc"> <div class="short"> True to add a second TR element per... </div> <div class="long"> True to add a second TR element per row that can be used to provide a row body that spans beneath the data row.Use the {@link #getRowClass} method's rowParams config to customize the row body. True表示为在每一数据行的下方加入一个TR的元素,为行部分提供位置。应使用{@link #getRowClass}方法的rowParams的配置自定义行部分。 </div> </div> </td> <td class="msource"> GridView </td> </tr> <tr class="config-row expandable"> <td class="micon"> <a class="exi" href="#expand"> </a> </td> <td class="sig"> <a id="emptyText-header"></a> <b>emptyText</b> : String <div class="mdesc"> <div class="short"> Default text to display in the grid... </div> <div class="long"> Default text to display in the grid body when no rows are available (defaults to ''). 当GRID没有一行可供显示时出现在body的提示文本(默认为"")。 </div> </div> </td> <td class="msource"> GridView </td> </tr> <tr class="config-row expandable"> <td class="micon"> <a class="exi" href="#expand"> </a> </td> <td class="sig"> <a id="autoFill-header"></a> <b>autoFill</b> : Boolean <div class="mdesc"> <div class="short"> True to auto expand the columns to ... </div> <div class="long"> True to auto expand the columns to fit the grid <b>when the grid is created</b>. True表示为<b>当GRID创建后</b>自动展开各列,自适应整个GRID。 </div> </div> </td> <td class="msource"> GridView </td> </tr> <tr class="config-row expandable"> <td class="micon"> <a class="exi" href="#expand"> </a> </td> <td class="sig"> <a id="forceFit-header"></a> <b>forceFit</b> : Boolean <div class="mdesc"> <div class="short"> True to auto expand/contract the si... </div> <div class="long"> True to auto expand/contract the size of the columns to fit the grid width and prevent horizontal scrolling. True表示除了auto expand(自动展开)外,还会对超出的部分进行缩减,让每一列的尺寸适应GRID的宽度大小,阻止水平滚动条的出现。 </div> </div> </td> <td class="msource"> GridView </td> </tr> <tr class="config-row expandable"> <td class="micon"> <a class="exi" href="#expand"> </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.GridView-props"></a> <h2>公告属性</h2> <table cellspacing="0" class="member-table"> <tr> <th colspan="2"> 属性 </th> <th> 定义者 </th> </tr> <tr class="property-row inherited expandable"> <td class="micon"> <a class="exi" href="#expand"> </a> </td> <td class="sig"> <a id="scrollOffset-activeItem"></a> <b> scrollOffset: </b> <div class="mdesc"> <div class="short"> 预留给滚动条的空白位置(默认为19像素) </div> <div class="long"> 预留给滚动条的空白位置(默认为19像素) </div> </div> </td> <td class="msource"> GridView </td> </tr> <tr class="property-row inherited expandable"> <td class="micon"> <a class="exi" href="#expand"> </a> </td> <td class="sig"> <a id="sortClasses-activeItem"></a> <b> sortClasses: </b> <div class="mdesc"> <div class="short"> 排序时头部的CSS样式类(默认为["sort-asc", "sort... </div> <div class="long"> 排序时头部的CSS样式类(默认为["sort-asc", "sort-desc"])。 </div> </div> </td> <td class="msource"> GridView </td> </tr> <tr class="property-row inherited expandable"> <td class="micon"> <a class="exi" href="#expand"> </a> </td> <td class="sig"> <a id="sortAscText-activeItem"></a> <b> sortAscText: </b> <div class="mdesc"> <div class="short"> The text displayed in the "Sort As... </div> <div class="long"> The text displayed in the "Sort Ascending" menu item “升序”菜单项的提示文字
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -