liquid_feedback_frontend
annotate env/ui/box_row.lua @ 218:7ea52c710503
Some little changes for next generation frontend
author | bsw |
---|---|
date | Sun Mar 13 16:53:33 2011 +0100 (2011-03-13) |
parents | 1dab81353eb1 |
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 |