> For the complete documentation index, see [llms.txt](https://golua.fatality.win/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://golua.fatality.win/documentation/datatypes/textbox.md).

# textbox

{% hint style="info" %}
Inherits all [control ](/documentation/datatypes/control.md)functions
{% endhint %}

## Functions

### get

```lua
local item = gui.textbox('lua>elements a>test', 'lua>elements a')
print(item:get());
```

#### Returns:

| [Value](/documentation/datatypes/control.md) | [Datatype](/documentation/datatypes/control.md) |
| :------------------------------------------: | :---------------------------------------------: |
|                     value                    |                      string                     |

### set

```lua
local item = gui.textbox('lua>elements a>test', 'lua>elements a')
iteam:set("Text")
```

| [Parameter](/documentation/datatypes/control.md) | [Datatype](/documentation/datatypes/control.md) | [Description](/documentation/datatypes/control.md) |
| :----------------------------------------------: | :---------------------------------------------: | :------------------------------------------------: |
|                       value                      |                      string                     |                      new value                     |
