liferay-ui
Tag toggle


Creates a UI component that toggles the visibility of the content of the component matching the given id. Default icons are used as the component's default mechanism for showing and hiding the content.


Tag Information
Tag Classcom.liferay.taglib.ui.ToggleTag
TagExtraInfo ClassNone
Body ContentJSP
Display NameNone

Attributes
NameRequiredRequest-timeTypeDescription
defaultShowContentfalsetruebooleanSets whether to initially show content by default. The default value is true.
hideImagefalsetruejava.lang.StringSets an icon as the mechanism to hide the content. You can specify the location of an image file to use in the icon; otherwise a default icon is used.
hideMessagefalsetruejava.lang.StringSets the text to display as a link to hide the content. It overrides the hideImage attribute. Note that the showMessage attribute must also be configured in order for the hide message to render.
idtruetruejava.lang.StringIdentifies the component instance whose content to toggle.
showImagefalsetruejava.lang.StringSets an icon as the mechanism to show the content. You can specify the location of an image file to use in the icon; otherwise a default icon is used.
showMessagefalsetruejava.lang.StringSets a link as the mechanism to show the content. The text value of this attribute is used as the link's text. The message takes precedence over showing an image, via the showImage attribute. If you specify a showMessage attribute, you should also specify the hideMessage attribute; a null is otherwise displayed for the text of the hide link.
stateVarfalsetruejava.lang.StringSets text to be prefixed to the Toggle() function that is called to toggle the content. If this is not configured, a random key is generated and prefixed to the Toggle() function. For example, a value of run would result in a function named runToggle().

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.