liquid_feedback_frontend

annotate env/ui/box_row.lua @ 291:71eed60f6a41

Closed branch of experimental frontend
author jbe
date Sat Feb 25 15:56:55 2012 +0100 (2012-02-25)
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

Impressum / About Us