annotate env/ui/box.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(args)
|
bsw@211
|
2 app.ui_box_row = 1
|
bsw@211
|
3 app.ui_box_row_count = args.row_count
|
bsw@211
|
4 local class = "box"
|
bsw@211
|
5 if args.class then class = class .. " " .. args.class end
|
bsw@211
|
6 ui.container{ attr = { class = class }, content = args.content }
|
bsw@211
|
7 end
|