liquid_feedback_frontend
view env/ui/box_row.lua @ 215:1dab81353eb1
More enhancements for second generation frontend
author | bsw |
---|---|
date | Sat Mar 05 15:34:17 2011 +0100 (2011-03-05) |
parents | 4993b71b383f |
children |
line source
1 function ui.box_row(args)
2 app.ui_box_col = 1
3 local class = "row"
4 if args.class then class = class .. " " .. args.class end
5 ui.container{ attr = { class = class }, content = function()
6 if type(args.content) == "function" then
7 args.content()
8 else
9 slot.put(encode.html(args.content))
10 end
11 end }
12 end