> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gleap.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Widget control

In some situations you might want to take full control over showing or hiding the Gleap widget. This can be achieved with the following methods.

### Open the Gleap widget

```javascript theme={null}
Gleap.open();
```

### Close the Gleap widget

```javascript theme={null}
Gleap.close();
```

<Info>
  If you want to get notified of certain events, check out the
  [events](events.md) documentation page.
</Info>

### Widget open status

It's possible to request the widget open status with the following method.

```javascript theme={null}
const isOpened = Gleap.isOpened();
```
