annotate env/ui/box_col.lua @ 212:3e4ad069847a
Some more work at 2nd generation frontend code
author |
bsw |
date |
Thu Mar 03 18:39:00 2011 +0100 (2011-03-03) |
parents |
4993b71b383f |
children |
1dab81353eb1 |
rev |
line source |
bsw@211
|
1 function ui.box_col(args)
|
bsw@211
|
2 local class = "col"
|
bsw@211
|
3 if args.class then class = class .. " " .. args.class end
|
bsw@211
|
4 if app.ui_box_col == 1 then class = class .. " first" end
|
bsw@211
|
5 ui.container{ attr = { class = class }, content = args.content }
|
bsw@211
|
6 app.ui_box_col = app.ui_box_col + 1
|
bsw@211
|
7 end
|