Docs 1.6
Accidentally uploaded outdated 1.6 docs
This commit is contained in:
20
docs/docs1_6/objects/Object/onLoseFocus.md
Normal file
20
docs/docs1_6/objects/Object/onLoseFocus.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# Object - Event
|
||||
|
||||
## onLoseFocus
|
||||
|
||||
`onLoseFocus(self)`
|
||||
|
||||
This event gets triggered as soon as the object loses its focus.
|
||||
|
||||
```lua
|
||||
local basalt = require("basalt")
|
||||
|
||||
local main = basalt.createFrame()
|
||||
local aButton = main:addButton()
|
||||
:setPosition(3,3)
|
||||
:onLoseFocus(
|
||||
function(self)
|
||||
basalt.debug("Please come back...")
|
||||
end
|
||||
)
|
||||
```
|
||||
Reference in New Issue
Block a user