---
title: "Cordova SDK: Widget control"
description: "Open and close the Gleap widget programmatically with the Gleap Cordova SDK. Follow the integration code examples."
url: https://docs.gleap.ai/en/articles/607-cordova-sdk-widget-control
collection: "Cordova"
updated: 2026-11-01
language: en
---

# Cordova SDK: Widget control

Open and close the Gleap widget programmatically with the Gleap Cordova SDK. Follow the integration code examples.

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
cordova.plugins.GleapPlugin.open();
```

### Close the Gleap widget

```javascript
cordova.plugins.GleapPlugin.close();
```

### Widget open status

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

```javascript
const isOpened = cordova.plugins.GleapPlugin.isOpened();
```

## Related

- [Cordova SDK setup](https://docs.gleap.ai/en/articles/595-cordova-sdk-setup.md)
- [Cordova SDK: User identity](https://docs.gleap.ai/en/articles/596-cordova-sdk-user-identity.md)
- [Cordova SDK: Track events](https://docs.gleap.ai/en/articles/597-cordova-sdk-track-events.md)
- [Cordova SDK: Track pages](https://docs.gleap.ai/en/articles/598-cordova-sdk-track-pages.md)
- [Cordova SDK: Forms](https://docs.gleap.ai/en/articles/599-cordova-sdk-forms.md)
