# Widgets

Lets scripts identify buttons, sliders, and other widget helpers through the `Widgets` global.  
```js
const screen = Hud.getOpenScreen();  
if (screen !== null) {
  for (const widget of screen.getButtonWidgets()) {
    if (widget instanceof Widgets.Slider) {
      Chat.log(widget.getValue());  
    }
  }
}
```

These names are available in JavaScript and Python without importing anything. They are read-only aliases of Java types, so `instanceof` works as usual.

| Script name | What it is |
| --- | --- |
| [`Widgets.Button`](/2.3.0/26.1.2/classes/com/jsmacrosce/jsmacros/client/api/helper/screen/ButtonWidgetHelper.md) | Wraps a game button and exposes its button-specific behavior to scripts. |
| [`Widgets.CheckBox`](/2.3.0/26.1.2/classes/com/jsmacrosce/jsmacros/client/api/helper/screen/CheckBoxWidgetHelper.md) | A checkbox widget whose checked state can be changed by the player or a script. |
| [`Widgets.Clickable`](/2.3.0/26.1.2/classes/com/jsmacrosce/jsmacros/client/api/helper/screen/ClickableWidgetHelper.md) | Wraps a game widget so scripts can inspect and control it; other widget helpers extend this base. |
| [`Widgets.CyclingButton`](/2.3.0/26.1.2/classes/com/jsmacrosce/jsmacros/client/api/helper/screen/CyclingButtonWidgetHelper.md) | A button that displays a selected value and cycles through configured values when pressed. |
| [`Widgets.LockButton`](/2.3.0/26.1.2/classes/com/jsmacrosce/jsmacros/client/api/helper/screen/LockButtonWidgetHelper.md) | A lock button toggles between locked and unlocked when pressed. |
| [`Widgets.Slider`](/2.3.0/26.1.2/classes/com/jsmacrosce/jsmacros/client/api/helper/screen/SliderWidgetHelper.md) | A JsMacros slider widget with a draggable handle. |
| [`Widgets.TextField`](/2.3.0/26.1.2/classes/com/jsmacrosce/jsmacros/client/api/helper/screen/TextFieldWidgetHelper.md) | Wraps the game's text field with a text-change callback. |

