> Agent-readable docs index: /llms.txt. Download /docs.zip to grep all markdown files locally.

---
title: TextButton
icon: braces
---

# <ApiPageIcon icon="braces" />TextButton

## panorama.panels.TextButton<ApiTag label="object type" />

<ApiSymbol inherits="[{&#x22;n&#x22;:&#x22;panorama.panels.Panel&#x22;,&#x22;h&#x22;:&#x22;/cs2/dumped_data/panorama/panels/Panel#panoramapanelspanel&#x22;}]" />

JavaScript panel type `TextButton`: the members of a panel's object, as `panorama.ids.<Id>` returns it
or as JavaScript hands it back. Call its members with a dot.
Extends `Panel`, inferred from the registered members; only what `TextButton` adds is listed here.

<ApiMembers>
  <ApiMember kind="prop" name="panorama.panels.TextButton.text" ret="[[{&#x22;s&#x22;:&#x22;string&#x22;,&#x22;k&#x22;:&#x22;prim&#x22;,&#x22;h&#x22;:&#x22;/cs2/api_reference/lua/base#string&#x22;}]]" />
</ApiMembers>
