jbe/bsw@0: --[[doc: ui_deprecated.box jbe/bsw@0: jbe/bsw@0: Starts a box jbe/bsw@0: jbe/bsw@0: label (string) Label, optional jbe/bsw@0: class (string) Style class, optional jbe/bsw@0: content (function) or (string) The content of the box jbe/bsw@0: jbe/bsw@0: jbe/bsw@0: Example: jbe/bsw@0: jbe/bsw@0: ui_deprecated.box{ jbe/bsw@0: label = 'My box label', jbe/bsw@0: class = 'my_css_class', jbe/bsw@0: content = function() jbe/bsw@0: ui_deprecated.text('My text') jbe/bsw@0: end jbe/bsw@0: } jbe/bsw@0: jbe/bsw@0: --]] jbe/bsw@0: jbe/bsw@0: function ui_deprecated.box(args) jbe/bsw@0: if args.class then jbe/bsw@0: args.html_options = args.html_options or {} jbe/bsw@0: args.html_options.class = args.class jbe/bsw@0: end jbe/bsw@0: ui_deprecated.tag('div', args) jbe/bsw@0: end jbe/bsw@0: