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),
        bordersize = Screen:scaleBySize(3),
        margin = 0,
        padding = Screen:scaleBySize(2),
    }
    


generated by LDoc 1.5.0 Last updated 2024-11-21 07:57:34