# Legato.Control.ToggleDiv

This simple control switches the visibility of an arbitrary div which is given in its “div” property.

#### Inherits from

- Legato.Control

Summary

Legato.Control.ToggleDiv | This simple control switches the visibility of an arbitrary div which is given in its “div” property.
Functions |
activate | Invoked when the control is activated in toggle mode
trigger | Invoked when the control is deactivated in toggle mode
lc:ToggleDiv | XML based config for a Legato.Control.ToggleDiv.

### Functions

### activate

> activate: function()

Invoked when the control is activated in toggle mode

### trigger

Invoked when the control is deactivated in toggle mode

## lc:ToggleDiv

XML based config for a Legato.Control.ToggleDiv.

#### See Also

- Legato.Control
- Legato.Beans.BeanFactory
- <QName>

#### A valid config example for a ToggleDiv would be

>     <lc:ToggleDiv div="overviewMap" displayClass="LegatoControlToggleOverviewMap"/>

> activate: function()

Invoked when the control is activated in toggle mode
This simple control switches the visibility of an arbitrary div which is given in its “div” property.
Abstract base class for all Legato control classes