📄 window.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="animateTarget"
type="java.lang.String"
required="false"
description="
(String/Element)Id or element from which the window should animate while opening (defaults to null with no animation).
" %>
<%@ 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="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-window').
" %>
<%@ 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="closable"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to display the 'close' tool button and allow the user to close the window, false to hide the button and disallow closing the window (default to true).
" %>
<%@ attribute
name="closeAction"
type="java.lang.String"
required="false"
description="
(String)The action to take when the close button is clicked. The default action is 'close' which will actually remove the window from the DOM and destroy it. The other valid option is 'hide' which will simply hide the window by setting visibility to hidden and applying negative offsets, keeping the window available to be redisplayed via the show method.
" %>
<%@ 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="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="constrain"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to constrain the window to the viewport, false to allow it to fall outside of the viewport (defaults to false). Optionally the header only can be constrained using constrainHeader.
" %>
<%@ attribute
name="constrainHeader"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to constrain the window header to the viewport, allowing the window body to fall outside of the viewport, false to allow the header to fall outside the viewport (defaults to false). Optionally the entire window can be constrained using constrain.
" %>
<%@ 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="defaultButton"
type="java.lang.String"
required="false"
description="
(String/Number/Button)The id / index of a button or a button instance to focus when this window received the focus.
" %>
<%@ 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="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 allow the window to be dragged by the header bar, false to disable dragging (defaults to true). Note that by default the window will be centered in the viewport, so if dragging is disabled the window may need to be positioned programmatically after render (e.g., myWindow.setPosition(100, 100);).
" %>
<%@ attribute
name="expandOnShow"
type="java.lang.Boolean"
required="false"
description="
(Boolean)True to always expand the window when it is displayed, false to keep it in its current state (which may be collapsed) when displayed (defaults to true).
" %>
<%@ 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="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"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -