Module ui.widget.button

A button widget that shows text or an icon and handles callback when tapped.

Usage:

    local Button = require("ui/widget/button")
    local button = Button:new{
        text = _("Press me!"),
        enabled = false, -- defaults to true
        callback = some_callback_function,
        width = Screen:scaleBySize(50),
        max_width = Screen:scaleBySize(100),
        bordersize = Screen:scaleBySize(3),
        margin = 0,
        padding = Screen:scaleBySize(2),
    }
    


generated by LDoc 1.4.6 Last updated 2017-10-08 14:57:40