deploy: 6dfa554523
This commit is contained in:
52
docs/references/Input.md
Normal file
52
docs/references/Input.md
Normal file
@@ -0,0 +1,52 @@
|
||||
# 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.new)|Input|
|
||||
|[Input:blur](#Input:blur)|-|
|
||||
|[Input:char](#Input:char)|-|
|
||||
|[Input:focus](#Input:focus)|-|
|
||||
|[Input:init](#Input:init)|-|
|
||||
|[Input:key](#Input:key)|-|
|
||||
|[Input:render](#Input:render)|-|
|
||||
|[Input:updateViewport](#Input:updateViewport)|-|
|
||||
|
||||
## Input.new(id, basalt)
|
||||
Creates a new Input instance
|
||||
|
||||
### Parameters
|
||||
* `id` `string` The unique identifier for this element
|
||||
* `basalt` `table` The basalt instance
|
||||
|
||||
### Returns
|
||||
* `Input` `object` The newly created Input instance
|
||||
|
||||
### Usage
|
||||
```lua
|
||||
local element = Input.new("myId", basalt)
|
||||
```
|
||||
|
||||
## Input:blur()
|
||||
|
||||
## Input:char()
|
||||
|
||||
## Input:focus()
|
||||
|
||||
## Input:init()
|
||||
|
||||
## Input:key()
|
||||
|
||||
## Input:render()
|
||||
|
||||
## Input:updateViewport()
|
||||
|
||||
Reference in New Issue
Block a user