Updated docs
There is still stuff to do
This commit is contained in:
16
docs/objects/Object/onGetFocus.md
Normal file
16
docs/objects/Object/onGetFocus.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# onGetFocus
|
||||
`onGetFocus(self)`<br>
|
||||
This event gets triggered as soon as the object is the currently focused object.
|
||||
|
||||
```lua
|
||||
local basalt = require("basalt")
|
||||
|
||||
local main = basalt.createFrame()
|
||||
local aButton = main:addButton()
|
||||
:setPosition(3,3)
|
||||
:onGetFocus(
|
||||
function(self)
|
||||
basalt.debug("Welcome back!")
|
||||
end
|
||||
)
|
||||
```
|
||||
Reference in New Issue
Block a user