⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 toolbar.splitbutton.tag

📁 基于Jscript实现在类库,集成了现流行的ajax,重载select组件库
💻 TAG
📖 第 1 页 / 共 2 页
字号:
	type="java.lang.String"
	required="false"
	description="
(String)The button text
" %>

<%@ attribute
	name="toggleGroup"
	type="java.lang.String"
	required="false"
	description="
(String)The group this toggle button is a member of (only 1 per group can be pressed, only applies if enableToggle = true)
" %>

<%@ attribute
	name="tooltip"
	type="java.lang.String"
	required="false"
	description="
(String/Object)The tooltip for the button - can be a string or QuickTips config object
" %>

<%@ attribute
	name="tooltipType"
	type="java.lang.String"
	required="false"
	description="
(String)The type of tooltip to use. Either 'qtip' (default) for QuickTips or 'title' for title attribute.
" %>

<%@ attribute
	name="type"
	type="java.lang.String"
	required="false"
	description="
(String)submit, reset or button - defaults to 'button'
" %>

<%@ 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="onArrowclick"
	type="java.lang.Object"
	required="false"
	description="
( MenuButton this, EventObject e )Fires when this button's arrow is clicked
" %>

<%@ 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="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="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="onClick"
	type="java.lang.Object"
	required="false"
	description="
( Button this, EventObject e )Fires when this button is clicked
" %>

<%@ 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="onHide"
	type="java.lang.String"
	required="false"
	description="
( Ext.Component this )Fires after the component is hidden.
" %>

<%@ attribute
	name="onMenuhide"
	type="java.lang.String"
	required="false"
	description="
( Button this, Menu menu )If this button has a menu, this event fires when it is hidden
" %>

<%@ attribute
	name="onMenushow"
	type="java.lang.String"
	required="false"
	description="
( Button this, Menu menu )If this button has a menu, this event fires when it is shown
" %>

<%@ attribute
	name="onMenutriggerout"
	type="java.lang.Object"
	required="false"
	description="
( Button this, Menu menu, EventObject e )If this button has a menu, this event fires when the mouse leaves the menu triggering element
" %>

<%@ attribute
	name="onMenutriggerover"
	type="java.lang.Object"
	required="false"
	description="
( Button this, Menu menu, EventObject e )If this button has a menu, this event fires when the mouse enters the menu triggering element
" %>

<%@ attribute
	name="onMouseout"
	type="java.lang.String"
	required="false"
	description="
( Button this, Event e )Fires when the mouse exits the button
" %>

<%@ attribute
	name="onMouseover"
	type="java.lang.String"
	required="false"
	description="
( Button this, Event e )Fires when the mouse hovers over the button
" %>

<%@ attribute
	name="onRender"
	type="java.lang.String"
	required="false"
	description="
( Ext.Component this )Fires after the component is rendered.
" %>

<%@ attribute
	name="onShow"
	type="java.lang.String"
	required="false"
	description="
( Ext.Component this )Fires after the component is shown.
" %>

<%@ attribute
	name="onStaterestore"
	type="java.lang.Object"
	required="false"
	description="
( Ext.Component this, Object state )Fires after the state of the component is restored.
" %>

<%@ attribute
	name="onStatesave"
	type="java.lang.Object"
	required="false"
	description="
( Ext.Component this, Object state )Fires after the state of the component is saved to the configured state provider.
" %>

<%@ attribute
	name="onToggle"
	type="java.lang.Boolean"
	required="false"
	description="
( Button this, Boolean pressed )Fires when the 'pressed' state of this button changes (only if enableToggle = true)
" %>

<%-- Events _____________________________END --%>

<%@ include file="inc/taglibs.jsp" %>
<%@ tag 
	import="org.apache.commons.beanutils.BeanUtils"
	dynamic-attributes="dynamicAttributes"
	description="A menu button that renders into a toolbar." %>
	
	<extutil:processTagAttributes 
		configVar="configMap" 
		eventsVar="eventsMap" 
		include="*" 
		tagJspContext="<%=jspContext %>"
		dynamicAttributes="${dynamicAttributes}" />	
	
	<%-- Process JSP body --%>

	<jsp:doBody/>
				
	<c:set var="item">
		    new Ext.Toolbar.Button({
		  		<c:forEach items="${configMap}" var="config">
		  			${config.key}:${config.value},
		  		</c:forEach>
		  		<c:if test="<%=BeanUtils.getProperty(this,"menu")!=null %>">
					menu:<%=BeanUtils.getProperty(this,"menu")%>,
		  		</c:if>
		  		listeners:{
			  		<c:forEach items="${eventsMap}" var="event" varStatus="status">
			  			<c:if test="${fn:indexOf(event.value,'function(')==-1}">
				  			${event.key}:function(){${event.value}}			  			
			  			</c:if>
		  				<c:if test="${fn:indexOf(event.value,'function(')>-1}">
				  			${event.key}:${event.value}
			  			</c:if>
			  			${status.last?'':','}
			  		</c:forEach>
		  		}
		    }),
	</c:set>
	
	<extutil:setParentProperties 
		tag="<%=this%>" 
		items="${item}" />

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -