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

# Methods

Loading the Onset JavaScript library provides a JavaScript object that responds to several methods.

## Show Widget

Show the widget window.

```typescript theme={null}
widget.openWidget();
```

## Hide Widget

Hide the widget window if it is open.

```typescript theme={null}
widget.closeWidget();
```

## Show Popup

Show the pop up window.

**id** `string | latest`

ID of a release note to show in pop-up. Use "latest" to show the latest release.

```typescript latest theme={null}
widget.openPopup('latest');
```

```typescript specific release theme={null}
widget.openPopup(RELEASE_ID);
```

## Hide Popup

Hide the popup window if it is open.

```typescript theme={null}
widget.closePopup();
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.