liferay-ui
Tag toggle


Creates a 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
defaultShowContentfalsetruebooleanWhether to initially show content by default. The default value is true.
hideImagefalsetruejava.lang.StringAn icon to use as the mechanism for hiding the content. You can specify the location of an image file to use in the icon; otherwise a default icon is used.
hideMessagefalsetruejava.lang.StringText to display as a link for hiding 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.StringThe ID of a component instance whose content's visibility to toggle.
showImagefalsetruejava.lang.StringAn icon to use as the mechanism for showing the content. You can specify the location of an image file to use in the icon; otherwise a default icon is used.
showMessagefalsetruejava.lang.StringA link to use as the mechanism for showing 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.StringText to be prefixed to the Toggle() function that is called to toggle visibility of 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.