# rich

## Tag toggleControl

- Description:

    The <rich:toggleControl> behavior can be attached to any interface component, whether inside or outside the controlled panel itself. It works with a <rich:togglePanel> component to switch between different <rich:togglePanelItem> components.

    @author akolonitsky

- Behavior Information
  Info | Value
  --- | ---
  Behavior ID | `org.richfaces.component.behavior.ToggleControl`
  Display Name | None
  Handler Class | `org.richfaces.ui.common.CustomBehaviorHandler`
  Description | The <rich:toggleControl> behavior can be attached to any interface component, whether inside or outside the controlled panel itself. It works with a <rich:togglePanel> component to switch between different <rich:togglePanelItem> components. @author akolonitsky

- Attributes
  Name | Required | Type | Description
  --- | --- | --- | ---
  `disableDefault` | `false` | `javax.el.ValueExpression` (must evaluate to `java.lang.Boolean`) | If "true", disable the default action of the parent component
  `event` | `false` | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | The event on which to toggle the target panel
  `targetItem` | `false` | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | The next <rich:togglePanelItem> to switch to
  `targetPanel` | `false` | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | The <rich:togglePanel> to switch when this <rich:toggleControl> is not a child of a <rich:togglePanel>

Output generated by Vdldoc View Declaration Language Documentation Generator.