annotate env/ui/box.lua @ 213:acf92c2d33f4
Seperated css and fixed issue delegations for second generation frontend
author |
bsw |
date |
Thu Mar 03 21:26:35 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
|