ButtonDialog: add documentation about layout (#9505)

reviewable/pr9664/r20^2
Roygbyte 2 years ago committed by GitHub
parent eb56948fac
commit 724db87755
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,3 +1,44 @@
--[[--
A button dialog widget that shows a grid of buttons.
@usage
local button_dialog = ButtonDialog:new{
buttons = {
{
{
text = "First row, left side",
callback = function() end,
hold_callback = function() end
},
{
text = "First row, middle",
callback = function() end
},
{
text = "First row, right side",
callback = function() end
}
},
{
{
text = "Second row, full span",
callback = function() end
}
},
{
{
text = "Third row, left side",
callback = function() end
},
{
text = "Third row, right side",
callback = function() end
}
}
}
}
--]]
local Blitbuffer = require("ffi/blitbuffer")
local ButtonTable = require("ui/widget/buttontable")
local CenterContainer = require("ui/widget/container/centercontainer")

Loading…
Cancel
Save