annotate env/ui/box_col.lua @ 211:4993b71b383f
First checkin of lf2 (frontend second generation) prototype
 | author | 
 bsw | 
 | date | 
 Wed Mar 02 20:06:26 2011 +0100 (2011-03-02) | 
 | parents | 
  | 
 | 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
 |