webmcp
view framework/env/ui_deprecated/box.lua @ 2:72860d232f32
Version 1.0.2
Fixed bug with explicit garbage collection (requests > 256kB caused an error)
Views prefixed with an underscore can't be called externally
ui.paginate now displays the last page, if the selected page number is too high.
Fixed bug with explicit garbage collection (requests > 256kB caused an error)
Views prefixed with an underscore can't be called externally
ui.paginate now displays the last page, if the selected page number is too high.
| author | jbe/bsw | 
|---|---|
| date | Thu Dec 10 12:00:00 2009 +0100 (2009-12-10) | 
| parents | 9fdfb27f8e67 | 
| children | 
 line source
     1 --[[doc: ui_deprecated.box
     3 Starts a box
     5 label (string) Label, optional
     6 class (string) Style class, optional
     7 content (function) or (string) The content of the box
    10 Example:
    12 ui_deprecated.box{
    13   label   = 'My box label',
    14   class   = 'my_css_class',
    15   content = function() 
    16     ui_deprecated.text('My text')
    17   end
    18 }
    20 --]]
    22 function ui_deprecated.box(args)
    23   if args.class then
    24     args.html_options = args.html_options or {}
    25     args.html_options.class = args.class
    26   end
    27   ui_deprecated.tag('div', args)
    28 end
