📄 grid.gridpanel.tag
字号:
description="
(Boolean)True to manually sync row heights across locked and not locked rows.
" %>
<%@ attribute
name="floating"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to float the panel (absolute position it with automatic shimming and shadow), false to display it inline where it is rendered (defaults to false). Note that by default, setting floating to true will cause the panel to display at negative offsets so that it is hidden -- because the panel is absolute positioned, the position must be set explicitly after render (e.g., myPanel.setPosition(100,100);). Also, when floating a panel you should always assign a fixed width, otherwise it will be auto width and will expand to fill to the right edge of the viewport.
" %>
<%@ attribute
name="footer"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to create the footer element explicitly, false to skip creating it. By default, when footer is not specified, if one or more buttons have been added to the panel the footer will be created automatically, otherwise it will not.
" %>
<%@ attribute
name="frame"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to render the panel with custom rounded borders, false to render with plain 1px square borders (defaults to false).
" %>
<%@ attribute
name="header"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to create the header element explicitly, false to skip creating it. By default, when header is not specified, if a title is set the header will be created automatically, otherwise it will not. If a title is set but header is explicitly set to false, the header will not be rendered.
" %>
<%@ attribute
name="headerAsText"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to display the panel title in the header, false to hide it (defaults to true).
" %>
<%@ attribute
name="height"
type="java.lang.Integer"
required="false"
description="
(Number)The height of this component in pixels (defaults to auto).
" %>
<%@ attribute
name="hideBorders"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to hide the borders of each contained component, false to defer to the component's existing border settings (defaults to false).
" %>
<%@ attribute
name="hideCollapseTool"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to hide the expand/collapse toggle button when collapsible = true, false to display it (defaults to false).
" %>
<%@ attribute
name="hideMode"
type="java.lang.String"
required="false"
description="
(String)How this component should hidden. Supported values are 'visibility' (css visibility), 'offsets' (negative offset position) and 'display' (css display) - defaults to 'display'.
" %>
<%@ attribute
name="hideParent"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to hide and show the component's container when hide/show is called on the component, false to hide and show the component itself (defaults to false). For example, this can be used as a shortcut for a hide button on a window by setting hide:true on the button when adding it to its parent container.
" %>
<%@ attribute
name="html"
type="java.lang.String"
required="false"
description="
(String/Object)An HTML fragment, or a DomHelper specification to use as the panel's body content (defaults to '').
" %>
<%@ attribute
name="iconCls"
type="java.lang.String"
required="false"
description="
(String)A CSS class that will provide a background image to be used as the panel header icon (defaults to '').
" %>
<%@ attribute
name="id"
type="java.lang.String"
required="false"
description="
(String)The unique id of this component (defaults to an auto-assigned id).
" %>
<%@ attribute
name="items"
type="java.lang.String"
required="false"
description="
(Mixed)A single item, or an array of child Components to be added to this container. Each item can be any type of object based on Ext.Component.
Component config objects may also be specified in order to avoid the overhead of constructing a real Component object if lazy rendering might mean that the added Component will not be rendered immediately. To take advantage of this 'lazy instantiation', set the Ext.Component.xtype config property to the registered type of the Component wanted.
For a list of all available xtypes, see Ext.Component. If a single item is being passed, it should be passed directly as an object reference (e.g., items: {...}). Multiple items should be passed as an array of objects (e.g., items: [{...}, {...}]).
" %>
<%@ attribute
name="keys"
type="java.lang.Object"
required="false"
description="
(Object/Array)A KeyMap config object (in the format expected by Ext.KeyMap.addBinding used to assign custom key handling to this panel (defaults to null).
" %>
<%@ attribute
name="layout"
type="java.lang.String"
required="false"
description="
(String)The layout type to be used in this container. If not specified, a default Ext.layout.ContainerLayout will be created and used. Valid values are: accordion, anchor, border, card, column, fit, form and table. Specific config values for the chosen layout type can be specified using layoutConfig.
" %>
<%@ attribute
name="layoutConfig"
type="java.lang.Object"
required="false"
description="
(Object)This is a config object containing properties specific to the chosen layout (to be used in conjunction with the layout config value). For complete details regarding the valid config options for each layout type, see the layout class corresponding to the type specified:
* Ext.layout.Accordion
* Ext.layout.AnchorLayout
* Ext.layout.BorderLayout
* Ext.layout.CardLayout
* Ext.layout.ColumnLayout
* Ext.layout.FitLayout
* Ext.layout.FormLayout
* Ext.layout.TableLayout
" %>
<%@ attribute
name="listeners"
type="java.lang.Object"
required="false"
description="
(Object)A config object containing one or more event handlers to be added to this object during initialization. This should be a valid listeners config object as specified in the addListener example for attaching multiple handlers at once.
" %>
<%@ attribute
name="loadMask"
type="java.lang.Object"
required="false"
description="
(Object)An Ext.LoadMask config or true to mask the grid while loading (defaults to false).
" %>
<%@ attribute
name="maskDisabled"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to mask the panel when it is disabled, false to not mask it (defaults to true). Either way, the panel will always tell its contained elements to disable themselves when it is disabled, but masking the panel can provide an additional visual cue that the panel is disabled.
" %>
<%@ attribute
name="maxHeight"
type="java.lang.Integer"
required="false"
description="
(Number)Sets the maximum height of the grid - ignored if autoHeight is not on.
" %>
<%@ attribute
name="minButtonWidth"
type="java.lang.Integer"
required="false"
description="
(Number)Minimum width in pixels of all buttons in this panel (defaults to 75)
" %>
<%@ attribute
name="minColumnWidth"
type="java.lang.Integer"
required="false"
description="
(Number)The minimum width a column can be resized to. Defaults to 25.
" %>
<%@ attribute
name="monitorResize"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to automatically monitor window resize events to handle anything that is sensitive to the current size of the viewport. This value is typically managed by the chosen layout and should not need to be set manually.
" %>
<%@ attribute
name="monitorWindowResize"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to autoSize the grid when the window resizes. Defaults to true.
" %>
<%@ attribute
name="plugins"
type="java.lang.Object"
required="false"
description="
(Object/Array)An object or array of objects that will provide custom functionality for this component. The only requirement for a valid plugin is that it contain an init method that accepts a reference of type Ext.Component. When a component is created, if any plugins are available, the component will call the init method on each plugin, passing a reference to itself. Each plugin can then call methods or respond to events on the component as needed to provide its functionality.
" %>
<%@ attribute
name="renderTo"
type="java.lang.String"
required="false"
description="
(Mixed)The id of the node, a DOM node or an existing Element that will be the container to render this component into. Using this config, a call to render() is not required.
" %>
<%@ attribute
name="selModel"
type="java.lang.Object"
required="false"
description="
(Object)Any subclass of AbstractSelectionModel that will provide the selection model for the grid (defaults to Ext.grid.RowSelectionModel if not specified).
" %>
<%@ attribute
name="shadow"
type="java.lang.String"
required="false"
description="
(Boolean/String)True (or a valid Ext.Shadow Ext.Shadow.mode value) to display a shadow behind the panel, false to display no shadow (defaults to 'sides'). Note that this option only applies when floating = true.
" %>
<%@ attribute
name="shadowOffset"
type="java.lang.Integer"
required="false"
description="
(Number)The number of pixels to offset the shadow if displayed (defaults to 4). Note that this option only applies when floating = true.
" %>
<%@ attribute
name="shim"
type="java.lang.Boolean"
required="false"
description="
(Boolean)False to disable the iframe shim in browsers which need one (defaults to true). Note that this option only applies when floating = true.
" %>
<%@ attribute
name="sm"
type="java.lang.Object"
required="false"
description="
(Object)Shorthand for selModel.
" %>
<%@ attribute
name="stateEvents"
type="java.lang.String"
required="false"
description="
(Array)An array of events that, when fired, should trigger this component to save its state (defaults to none). These can be any types of events supported by this component, including browser or custom events (e.g., ['click', 'customerchange']).
" %>
<%@ attribute
name="stateId"
type="java.lang.String"
required="false"
description="
(String)The unique id for this component to use for state management purposes (defaults to the component id).
" %>
<%@ attribute
name="store"
type="java.lang.String"
required="false"
description="
(Ext.data.Store)The Ext.data.Store the grid should use as its data source (required).
" %>
<%@ attribute
name="stripeRows"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to stripe the rows. Default is false.
" %>
<%@ attribute
name="style"
type="java.lang.String"
required="false"
description="
(String)A custom style specification to be applied to this component's Element. Should be a valid argument to Ext.Element.applyStyles.
" %>
<%@ attribute
name="tbar"
type="java.lang.Object"
required="false"
description="
(Object/Array)The top toolbar of the panel. This can be either an Ext.Toolbar object or an array of buttons/button configs to be added to the toolbar. Note that this is not available as a property after render. To access the top toolbar after render, use getTopToolbar.
" %>
<%@ attribute
name="title"
type="java.lang.String"
required="false"
description="
(String)The title text to display in the panel header (defaults to ''). When a title is specified the header element will automatically be created and displayed unless header is explicitly set to false. If you don't want to specify a title at config time, but you may want one later, you must either specify a non-empty title (a blank space ' ' will do) or header:true so that the container element will get created.
" %>
<%@ attribute
name="titleCollapse"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to allow expanding and collapsing the panel (when collapsible = true) by clicking anywhere in the header bar, false to allow it only by clicking to tool button (defaults to false).
" %>
<%@ attribute
name="tools"
type="java.lang.String"
required="false"
description="
(Array)An array of tool button configs to be added to the header tool area. Each tool config may contain the following properties:
* id : String
Required. The type of tool to create. Values may be
o toggle (Created by default when collapsible is true)
o close
o minimize
o maximize
o restore
o gear
o pin
o unpin
o right
o left
o up
o down
o refresh
o minus
o plus
o help
o search
o save
handler : Function
#
Required. The function to call when clicked. Arguments passed are:
* event : Ext.EventObject
The click event.
* toolEl : Ext.Element
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -