Gleap Documentation home page
Search...
⌘K
Dashboard
Dashboard
Search...
Navigation
Javascript
Widget control
Documentation
API Reference
Website
Helpcenter
Roadmap
Blog
Get Started
Introduction
SDKs
Javascript
Introduction
User identity
Callbacks
AI tools
Replays
Forms
Feedback button
Push notifications
In-app notifications
Audio recording
Console logs
Custom actions
Ticket attributes
Custom data
Track pages
Track events
Tags
Custom URL handler
Network logs
Translations
Widget control
Prefill the widget form
Privacy controls
Cookies
Environment
Content Security Policy (CSP)
Rendering issues
Widget apps
UI components
iOS
Android
ReactNative
Flutter
FlutterFlow
Ionic / Capacitor
Cordova
Server-side event tracking
NodeJS
REST
Guides
Enforce identity verification
On this page
Open the Gleap widget
Close the Gleap widget
Widget open status
Javascript
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
Copy
Gleap
.
open
();
Close the Gleap widget
Copy
Gleap
.
close
();
If you want to reset the route in the widget just add Gleap.close(true);
Widget open status
It’s possible to request the widget open status with the following method.
Copy
const
isOpened
=
Gleap
.
isOpened
();
Translations
Prefill the widget form
Assistant
Responses are generated using AI and may contain mistakes.