liquid_feedback_frontend
annotate 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 |
| rev | line source |
|---|---|
| bsw@211 | 1 function ui.box_row(args) |
| bsw@211 | 2 app.ui_box_col = 1 |
| bsw@211 | 3 local class = "row" |
| bsw@211 | 4 if args.class then class = class .. " " .. args.class end |
| bsw@211 | 5 ui.container{ attr = { class = class }, content = function() |
| bsw@211 | 6 if type(args.content) == "function" then |
| bsw@211 | 7 args.content() |
| bsw@211 | 8 else |
| bsw@211 | 9 slot.put(encode.html(args.content)) |
| bsw@211 | 10 end |
| bsw@211 | 11 end } |
| bsw@211 | 12 end |