990 B
990 B
Input : VisualElement
Properties
| Property | Type | Default | Description |
|---|---|---|---|
| text | string | Input | - text to be displayed |
| cursorPos | number | Input | - current cursor position |
| viewOffset | number | Input | - offset für Text-Viewport |
Functions
| Method | Returns | Description |
|---|---|---|
| Input.new | Input | |
| Input:blur | - | |
| Input:char | - | |
| Input:focus | - | |
| Input:init | - | |
| Input:key | - | |
| Input:render | - | |
| Input:updateViewport | - |
Input.new(id, basalt)
Creates a new Input instance
Parameters
idstringThe unique identifier for this elementbasalttableThe basalt instance
Returns
InputobjectThe newly created Input instance
Usage
local element = Input.new("myId", basalt)