Module ui.event
Events are messages that are passed through the widget tree.
Events need a "name" attribute as minimal data.
To see how event propagation works and how to make widgets event-aware see the implementation in ui.widget.container.widgetcontainer.
A detailed guide to events can be found in the event programmer's guide.
Functions
Event:new (name[, arguments]) | Creates a new event. |
Tables
Event |
Functions
- Event:new (name[, arguments])
-
Creates a new event.
Parameters:
- name string
- arguments ... for the event (optional)
Returns:
Usage:
local Event = require("ui/event") Event:new("GotoPage", 1)