📄 grid.gridpanel.tag
字号:
The tool Element.
* Panel : Ext.Panel
The host Panel
scope : Object
#
The scope in which to call the handler.
qtip : String/Object
#
A tip string, or a config argument to Ext.QuickTip.register
hidden : Boolean
#
True to initially render hidden.
on : Object
#
A listener config object specifiying event listeners in the format of an argument to addListener
Example usage:
tools:[{id:'refresh',// hidden:true,handler: function(event, toolEl, panel){// refresh logic}}]
Note that apart from the toggle tool which is provided when a panel is collapsible, these tools only provide the visual button. Any required functionality must be provided by adding handlers that implement the necessary behavior.
" %>
<%@ attribute
name="trackMouseOver"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to highlight rows when the mouse is over. Default is true.
" %>
<%@ attribute
name="view"
type="java.lang.Object"
required="false"
description="
(Object)The Ext.grid.GridView used by the grid. This can be set before a call to render().
" %>
<%@ attribute
name="viewConfig"
type="java.lang.Object"
required="false"
description="
(Object)A config object that will be applied to the grid's UI view. Any of the config options available for Ext.grid.GridView can be specified here.
" %>
<%@ attribute
name="width"
type="java.lang.Integer"
required="false"
description="
(Number)The width of this component in pixels (defaults to auto).
" %>
<%@ attribute
name="xtype"
type="java.lang.String"
required="false"
description="
(String)The registered xtype to create. This config option is not used when passing a config object into a constructor. This config option is used only when lazy instantiation is being used, and a child item of a Container is being specified not as a fully instantiated Component, but as a Component config object. The xtype will be looked up at render time up to determine what type of child Component to create.
The predefined xtypes are listed here.
If you subclass Components to create your own Components, you may register them using Ext.ComponentMgr.registerType in order to be able to take advantage of lazy instantiation and rendering.
" %>
<%-- Config params _____________________________END --%>
<%-- Events _____________________________START --%>
<%@ attribute
name="onActivate"
type="java.lang.String"
required="false"
description="
( Ext.Panel p )Fires after the Panel has been visually activated.Note that Panels do not directly support being activated, but some Panel subclassesdo (like Ext.Window). Panels which are child Components of a TabPanel fire theactivate and deactivate events under the control of the TabPanel.
" %>
<%@ attribute
name="onAdd"
type="java.lang.Integer"
required="false"
description="
( Ext.Container this, Ext.Component component, Number index )Fires after any Ext.Component is added or inserted into the container.
" %>
<%@ attribute
name="onAfterlayout"
type="java.lang.String"
required="false"
description="
( Ext.Container this, ContainerLayout layout )Fires when the components in this container are arranged by the associated layout manager.
" %>
<%@ attribute
name="onBeforeadd"
type="java.lang.Integer"
required="false"
description="
( Ext.Container this, Ext.Component component, Number index )Fires before any Ext.Component is added or inserted into the container.A handler can return false to cancel the add.
" %>
<%@ attribute
name="onBeforeclose"
type="java.lang.String"
required="false"
description="
( Ext.Panel p )Fires before the Panel is closed.Note that Panels do not directly support being closed, but somePanel subclasses do (like Ext.Window).This event only applies to such subclasses.A handler can return false to cancel the close.
" %>
<%@ attribute
name="onBeforecollapse"
type="java.lang.Boolean"
required="false"
description="
( Ext.Panel p, Boolean animate )Fires before the Panel is collapsed.A handler can return false to cancel the collapse.
" %>
<%@ attribute
name="onBeforedestroy"
type="java.lang.String"
required="false"
description="
( Ext.Component this )Fires before the component is destroyed. Return false to stop the destroy.
" %>
<%@ attribute
name="onBeforeexpand"
type="java.lang.Boolean"
required="false"
description="
( Ext.Panel p, Boolean animate )Fires before the Panel is expanded.A handler can return false to cancel the expand.
" %>
<%@ attribute
name="onBeforehide"
type="java.lang.String"
required="false"
description="
( Ext.Component this )Fires before the component is hidden. Return false to stop the hide.
" %>
<%@ attribute
name="onBeforeremove"
type="java.lang.String"
required="false"
description="
( Ext.Container this, Ext.Component component )Fires before any Ext.Component is removed from the container.A handler can returnfalse to cancel the remove.
" %>
<%@ attribute
name="onBeforerender"
type="java.lang.String"
required="false"
description="
( Ext.Component this )Fires before the component is rendered. Return false to stop the render.
" %>
<%@ attribute
name="onBeforeshow"
type="java.lang.String"
required="false"
description="
( Ext.Component this )Fires before the component is shown. Return false to stop the show.
" %>
<%@ attribute
name="onBeforestaterestore"
type="java.lang.Object"
required="false"
description="
( Ext.Component this, Object state )Fires before the state of the component is restored. Return false to stop the restore.
" %>
<%@ attribute
name="onBeforestatesave"
type="java.lang.Object"
required="false"
description="
( Ext.Component this, Object state )Fires before the state of the component is saved to the configured state provider. Return false to stop the save.
" %>
<%@ attribute
name="onBodyresize"
type="java.lang.Integer"
required="false"
description="
( Ext.Panel p, Number width, Number height )Fires after the Panel has been resized.
" %>
<%@ attribute
name="onBodyscroll"
type="java.lang.Integer"
required="false"
description="
( Number scrollLeft, Number scrollTop )Fires when the body element is scrolled
" %>
<%@ attribute
name="onCellclick"
type="java.lang.Object"
required="false"
description="
( Grid this, Number rowIndex, Number columnIndex, Ext.EventObject e )Fires when a cell is clicked.The data for the cell is drawn from the Recordfor this row. To access the data in the listener function use thefollowing technique:
function(grid, rowIndex, columnIndex, e) {var record = grid.getStore().getAt(rowIndex);// Get the Recordvar fieldName = grid.getColumnModel().getDataIndex(columnIndex); // Get field namevar data = record.get(fieldName);}
" %>
<%@ attribute
name="onCellcontextmenu"
type="java.lang.Object"
required="false"
description="
( Grid this, Number rowIndex, Number cellIndex, Ext.EventObject e )Fires when a cell is right clicked
" %>
<%@ attribute
name="onCelldblclick"
type="java.lang.Object"
required="false"
description="
( Grid this, Number rowIndex, Number columnIndex, Ext.EventObject e )Fires when a cell is double clicked
" %>
<%@ attribute
name="onCellmousedown"
type="java.lang.Object"
required="false"
description="
( Grid this, Number rowIndex, Number columnIndex, Ext.EventObject e )Fires before a cell is clicked
" %>
<%@ attribute
name="onClick"
type="java.lang.Object"
required="false"
description="
( Ext.EventObject e )The raw click event for the entire grid.
" %>
<%@ attribute
name="onClose"
type="java.lang.String"
required="false"
description="
( Ext.Panel p )Fires after the Panel is closed.Note that Panels do not directly support being closed, but somePanel subclasses do (like Ext.Window).
" %>
<%@ attribute
name="onCollapse"
type="java.lang.String"
required="false"
description="
( Ext.Panel p )Fires after the Panel has been collapsed.
" %>
<%@ attribute
name="onColumnmove"
type="java.lang.Integer"
required="false"
description="
( Number oldIndex, Number newIndex )Fires when the user moves a column
" %>
<%@ attribute
name="onColumnresize"
type="java.lang.Integer"
required="false"
description="
( Number columnIndex, Number newSize )Fires when the user resizes a column
" %>
<%@ attribute
name="onContextmenu"
type="java.lang.Object"
required="false"
description="
( Ext.EventObject e )The raw contextmenu event for the entire grid.
" %>
<%@ attribute
name="onDblclick"
type="java.lang.Object"
required="false"
description="
( Ext.EventObject e )The raw dblclick event for the entire grid.
" %>
<%@ attribute
name="onDeactivate"
type="java.lang.String"
required="false"
description="
( Ext.Panel p )Fires after the Panel has been visually deactivated.Note that Panels do not directly support being deactivated, but some Panel subclassesdo (like Ext.Window). Panels which are child Components of a TabPanel fire theactivate and deactivate events under the control of the TabPanel.
" %>
<%@ attribute
name="onDestroy"
type="java.lang.String"
required="false"
description="
( Ext.Component this )Fires after the component is destroyed.
" %>
<%@ attribute
name="onDisable"
type="java.lang.String"
required="false"
description="
( Ext.Component this )Fires after the component is disabled.
" %>
<%@ attribute
name="onEnable"
type="java.lang.String"
required="false"
description="
( Ext.Component this )Fires after the component is enabled.
" %>
<%@ attribute
name="onExpand"
type="java.lang.String"
required="false"
description="
( Ext.Panel p )Fires after the Panel has been expanded.
" %>
<%@ attribute
name="onHeaderclick"
type="java.lang.Object"
required="false"
description="
( Grid this, Number columnIndex, Ext.EventObject e )Fires when a header is clicked
" %>
<%@ attribute
name="onHeadercontextmenu"
type="java.lang.Object"
required="false"
description="
( Grid this, Number columnIndex, Ext.EventObject e )Fires when a header is right clicked
" %>
<%@ attribute
name="onHeaderdblclick"
type="java.lang.Object"
required="false"
description="
( Grid this, Number columnIndex, Ext.EventObject e )Fires when a header cell is double clicked
" %>
<%@ attribute
name="onHeadermousedown"
type="java.lang.Object"
required="false"
description="
( Grid this, Number columnIndex, Ext.EventObject e )Fires before a header is clicked
" %>
<%@ attribute
name="onHide"
type="java.lang.String"
required="false"
description="
( Ext.Component this )Fires after the component is hidden.
" %>
<%@ attribute
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -