📄 grid.gridpanel.tag
字号:
<%--
ExtJS Tag Library (ExtTLD)
Copyright (C) 2008 Jaroslav Benc <jaroslav.benc@gmail.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
===========================================================================
BY USING THIS LIBRARY YOU CONFIRM THAT YOU HAVE READ, UNDERSTOOD AND ACCEPT
OUR ETHICAL CRITERIA LISTED ON THE EXTTLD WEBSITE (WWW.EXTTLD.COM)
===========================================================================
--%>
<%-- Config params _____________________________START --%>
<%@ attribute
name="activeItem"
type="java.lang.String"
required="false"
description="
(String/Number)A string component id or the numeric index of the component that should be initially activated within the container's layout on render. For example, activeItem: 'item-1' or activeItem: 0 (index 0 = the first item in the container's collection). activeItem only applies to layout styles that can display items one at a time (like Ext.layout.Accordion, Ext.layout.CardLayout and Ext.layout.FitLayout). Related to Ext.layout.ContainerLayout.activeItem.
" %>
<%@ attribute
name="allowDomMove"
type="java.lang.Boolean"
required="false"
description="
(Boolean)Whether the component can move the Dom node when rendering (defaults to true).
" %>
<%@ attribute
name="animCollapse"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to animate the transition when the panel is collapsed, false to skip the animation (defaults to true if the Ext.Fx class is available, otherwise false).
" %>
<%@ attribute
name="applyTo"
type="java.lang.String"
required="false"
description="
(Mixed)The id of the node, a DOM node or an existing Element corresponding to a DIV that is already present in the document that specifies some structural markup for this component. When applyTo is used, constituent parts of the component can also be specified by id or CSS class name within the main element, and the component being created may attempt to create its subcomponents from that markup if applicable. Using this config, a call to render() is not required. If applyTo is specified, any value passed for renderTo will be ignored and the target element's parent node will automatically be used as the component's container.
" %>
<%@ attribute
name="autoDestroy"
type="java.lang.Boolean"
required="false"
description="
(Boolean)If true the container will automatically destroy any contained component that is removed from it, else destruction must be handled manually (defaults to true).
" %>
<%@ attribute
name="autoExpandColumn"
type="java.lang.String"
required="false"
description="
(String)The id of a column in this grid that should expand to fill unused space. This id can not be 0.
" %>
<%@ attribute
name="autoExpandMax"
type="java.lang.Integer"
required="false"
description="
(Number)The maximum width the autoExpandColumn can have (if enabled). Defaults to 1000.
" %>
<%@ attribute
name="autoExpandMin"
type="java.lang.Integer"
required="false"
description="
(Number)The minimum width the autoExpandColumn can have (if enabled). defaults to 50.
" %>
<%@ attribute
name="autoHeight"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to use height:'auto', false to use fixed height (defaults to false).
" %>
<%@ attribute
name="autoLoad"
type="java.lang.String"
required="false"
description="
(Object/String/Function)A valid url spec according to the Updater Ext.Updater.update method. If autoLoad is not null, the panel will attempt to load its contents immediately upon render.
The URL will become the default URL for this panel's body element, so it may be refreshed at any time.
" %>
<%@ attribute
name="autoScroll"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to use overflow:'auto' on the panel's body element and show scroll bars automatically when necessary, false to clip any overflowing content (defaults to false).
" %>
<%@ attribute
name="autoShow"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True if the component should check for hidden classes (e.g. 'x-hidden' or 'x-hide-display') and remove them on render (defaults to false).
" %>
<%@ attribute
name="autoWidth"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to use width:'auto', false to use fixed width (defaults to false).
" %>
<%@ attribute
name="baseCls"
type="java.lang.String"
required="false"
description="
(String)The base CSS class to apply to this panel's element (defaults to 'x-panel').
" %>
<%@ attribute
name="bbar"
type="java.lang.Object"
required="false"
description="
(Object/Array)The bottom toolbar of the panel. This can be a Ext.Toolbar object, a toolbar config, 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 bottom toolbar after render, use getBottomToolbar.
" %>
<%@ attribute
name="bodyBorder"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to display an interior border on the body element of the panel, false to hide it (defaults to true). This only applies when border == true. If border == true and bodyBorder == false, the border will display as a 1px wide inset border, giving the entire body element an inset appearance.
" %>
<%@ attribute
name="bodyStyle"
type="java.lang.String"
required="false"
description="
(String/Object/Function)Custom CSS styles to be applied to the body element in the format expected by Ext.Element.applyStyles (defaults to null).
" %>
<%@ attribute
name="border"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to display the borders of the panel's body element, false to hide them (defaults to true). By default, the border is a 2px wide inset border, but this can be further altered by setting bodyBorder to false.
" %>
<%@ attribute
name="bufferResize"
type="java.lang.Object"
required="false"
description="
(Boolean/Number)When set to true (100 milliseconds) or a number of milliseconds, the layout assigned for this container will buffer the frequency it calculates and does a re-layout of components. This is useful for heavy containers or containers with a large amount of sub components that frequent calls to layout are expensive.
" %>
<%@ attribute
name="buttonAlign"
type="java.lang.String"
required="false"
description="
(String)The alignment of any buttons added to this panel. Valid values are 'right,' 'left' and 'center' (defaults to 'right').
" %>
<%@ attribute
name="buttons"
type="java.lang.String"
required="false"
description="
(Array)An array of Ext.Button configs used to add buttons to the footer of this panel.
" %>
<%@ attribute
name="cls"
type="java.lang.String"
required="false"
description="
(String)An optional extra CSS class that will be added to this component's Element (defaults to ''). This can be useful for adding customized styles to the component or any of its children using standard CSS rules.
" %>
<%@ attribute
name="cm"
type="java.lang.Object"
required="false"
description="
(Object)Shorthand for colModel.
" %>
<%@ attribute
name="colModel"
type="java.lang.Object"
required="false"
description="
(Object)The Ext.grid.ColumnModel to use when rendering the grid (required).
" %>
<%@ attribute
name="collapseFirst"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to make sure the collapse/expand toggle button always renders first (to the left of) any other tools in the panel's title bar, false to render it last (defaults to true).
" %>
<%@ attribute
name="collapsed"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to render the panel collapsed, false to render it expanded (defaults to false).
" %>
<%@ attribute
name="collapsedCls"
type="java.lang.String"
required="false"
description="
(String)A CSS class to add to the panel's element after it has been collapsed (defaults to 'x-panel-collapsed').
" %>
<%@ attribute
name="collapsible"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to make the panel collapsible and have the expand/collapse toggle button automatically rendered into the header tool button area, false to keep the panel statically sized with no button (defaults to false).
" %>
<%@ attribute
name="columns"
type="java.lang.String"
required="false"
description="
(Array)An array of columns to auto create a ColumnModel
" %>
<%@ attribute
name="contentEl"
type="java.lang.String"
required="false"
description="
(String)The id of an existing HTML node to use as the panel's body content (defaults to '').
" %>
<%@ attribute
name="ctCls"
type="java.lang.String"
required="false"
description="
(String)An optional extra CSS class that will be added to this component's container (defaults to ''). This can be useful for adding customized styles to the container or any of its children using standard CSS rules.
" %>
<%@ attribute
name="defaultType"
type="java.lang.String"
required="false"
description="
(String)The default type of container represented by this object as registered in Ext.ComponentMgr (defaults to 'panel').
" %>
<%@ attribute
name="defaults"
type="java.lang.Object"
required="false"
description="
(Object)A config object that will be applied to all components added to this container either via the items config or via the add or insert methods. The defaults config can contain any number of name/value property pairs to be added to each item, and should be valid for the types of items being added to the container. For example, to automatically apply padding to the body of each of a set of contained Ext.Panel items, you could pass: defaults: {bodyStyle:'padding:15px'}.
" %>
<%@ attribute
name="disableSelection"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to disable selections in the grid (defaults to false). - ignored a SelectionModel is specified
" %>
<%@ attribute
name="disabledClass"
type="java.lang.String"
required="false"
description="
(String)CSS class added to the component when it is disabled (defaults to 'x-item-disabled').
" %>
<%@ attribute
name="draggable"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to enable dragging of this Panel (defaults to false). For custom drag/drop implementations, an Ext.Panel.DD config could also be passed in this config instead of true, although Ext.Panel.DD is an internal, undocumented class.
" %>
<%@ attribute
name="elements"
type="java.lang.String"
required="false"
description="
(String)A comma-delimited list of panel elements to initialize when the panel is rendered. Normally, this list will be generated automatically based on the items added to the panel at config time, but sometimes it might be useful to make sure a structural element is rendered even if not specified at config time (for example, you may want to add a button or toolbar dynamically after the panel has been rendered). Adding those elements to this list will allocate the required placeholders in the panel when it is rendered. Valid values are
* header
* tbar (top bar)
* body
* bbar (bottom bar)
* footer
*
Defaults to 'body'.
" %>
<%@ attribute
name="enableColumnHide"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to enable hiding of columns with the header context menu.
" %>
<%@ attribute
name="enableColumnMove"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to enable drag and drop reorder of columns.
" %>
<%@ attribute
name="enableColumnResize"
type="java.lang.Boolean"
required="false"
description="
(Boolean)False to turn off column resizing for the whole grid (defaults to true).
" %>
<%@ attribute
name="enableDragDrop"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to enable drag and drop of rows.
" %>
<%@ attribute
name="enableHdMenu"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to enable the drop down button for menu in the headers.
" %>
<%@ attribute
name="enableRowHeightSync"
type="java.lang.Boolean"
required="false"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -