Module ui.event

Events are messages that are passed through the widget tree

Events need a "name" attribute as minimal data.

In order to see how event propagation works and how to make widgets event-aware see the implementation in ui.widget.container.widgetcontainer.

Functions

Event:new (name[, arguments]) Create a new event.

Tables

Event


Functions

Event:new (name[, arguments])
Create a new event.

Parameters:

  • name string
  • arguments ... for the event (optional)

Returns:

    Event

Usage:

    local Event = require("ui/event")
    Event:new("GotoPage", 1)

Tables

Event

Fields:

  • handler name for the handler method: "on"..Event.name
  • args array of arguments for the event
generated by LDoc 1.4.6 Last updated 2017-10-08 14:57:40