## <sas:ExpandCollapse>

This tag is used for creating a container which can be expanded or collapsed to show or hide its contents.

### Syntax

`<sas:ExpandCollapse
[collapseImageDefault="java.lang.String"]
[collapseImageDisabled="java.lang.String"]
[content="java.lang.String"]
[customAttributes="java.lang.String"]
[epilog="java.lang.String"]
[expanded="false|true"]
[expandImageDefault="java.lang.String"]
[expandImageDisabled="java.lang.String"]
[id="value"]
[imageLocation="java.lang.String"]
[instantiate="true|false"]
[locale="java.util.Locale"]
[name="java.lang.String"]
[objectDataProperty="java.lang.String"]
[prolog="java.lang.String"]
[ref="java.lang.String"]
[removeButtonVisible="false|true"]
[removeImageDefault="java.lang.String"]
[render="true|false"]
[saveState="SAVE_STATE_NONE|SAVE_STATE_SESSION"]
[scope="page|request|session|application"]
[singleButton="true|false"]
[styleClassPrefix="java.lang.String"]
[title="java.lang.String"]>
[<sas:StyleMapKey .../>]
[<sas:SetProperty ...>
The value to set on the parent tag
</sas:SetProperty>]
[Additional <sas:StyleMapKey>, <sas:SetProperty> tags...]
[One or more lines of text to be placed in the container.]
</sas:ExpandCollapse>`

### Attributes

`collapseImageDefault` | The default image used for the collapse button.
`collapseImageDisabled` | The disabled image used for the collapse button.
`content` | The content to use for the component.
`customAttributes` | a list of attributes in the form of attribute="value", space delimited
`epilog` | Text that is output immediately after the last markup tag.
`expanded` | Set to true for expanded.
`expandImageDefault` | The default image used for the expand button.
`expandImageDisabled` | The disabled image used for the expand button.
`id` | Case-sensitive name used to identify the object instance.
`imageLocation` | The image location for the button images to be used for the component.
`instantiate` | Flag that, if true, indicates that a new instance of the underlying class should be loaded if one cannot be found in PageContext. Must be used with an id attribute.
`locale` | Specifies the locale to use for this instance of the class.
`name` | Value assigned to the markup tag's name attribute.
`objectDataProperty` | Value assigned to the output tag's objectDataProperty attribute.
`prolog` | Text that is output immediately preceeding the first markup tag.
`ref` | The variable String value that represents an object created earlier in the same scope.
`removeButtonVisible` | Set to true if remnove button is visible.
`removeImageDefault` | The default image used for the remove button.
`render` | Flag that, if true, indicates that the complete markup of the bean is output when the tag is closed. It also sets the the visible property on the underlying TransformationBean.
`saveState` | Set to SAVE_STATE_NONE for no state saving or SAVE_STATE_SESSION to save via session.
`scope` | The scope (or page context) within which the reference is available.
`singleButton` | Set to true for a single expand/collapse button, false if two buttons.
`styleClassPrefix` | The styleClassPrefix to use for the component.
`title` | The title to use for the component.

### More Information

To view the documentation for the related TransformationBean, see com.sas.servlet.tbeans.html.ExpandCollapse.

If you need to subclass the tag handler class for the sas:ExpandCollapse tag, extend com.sas.taglib.servlet.tbeans.ExpandCollapseTag.