webmcp
annotate framework/env/ui_deprecated/box.lua @ 4:5e32ef998acf
Version 1.0.4
ui.link{...} with POST target can now be parameterized with BOTH content and text to allow HTML content for JavaScript browsers and a text-only version for accessiblity
Changes related to database selectors:
- Support for row-based locking
- New method :count(), caching and returning the number of rows, which WOULD have been returned by :exec()
- Bugfix: WHERE and HAVING expressions are now enclosed in parenthesis to avoid problems with operator precedence
ui.script{...} now supports external .js files
Changes in langtool.lua to cope with escaped new-line chars (\n)
ui.link{...} with POST target can now be parameterized with BOTH content and text to allow HTML content for JavaScript browsers and a text-only version for accessiblity
Changes related to database selectors:
- Support for row-based locking
- New method :count(), caching and returning the number of rows, which WOULD have been returned by :exec()
- Bugfix: WHERE and HAVING expressions are now enclosed in parenthesis to avoid problems with operator precedence
ui.script{...} now supports external .js files
Changes in langtool.lua to cope with escaped new-line chars (\n)
author | jbe/bsw |
---|---|
date | Fri Dec 25 12:00:00 2009 +0100 (2009-12-25) |
parents | 9fdfb27f8e67 |
children |
rev | line source |
---|---|
jbe/bsw@0 | 1 --[[doc: ui_deprecated.box |
jbe/bsw@0 | 2 |
jbe/bsw@0 | 3 Starts a box |
jbe/bsw@0 | 4 |
jbe/bsw@0 | 5 label (string) Label, optional |
jbe/bsw@0 | 6 class (string) Style class, optional |
jbe/bsw@0 | 7 content (function) or (string) The content of the box |
jbe/bsw@0 | 8 |
jbe/bsw@0 | 9 |
jbe/bsw@0 | 10 Example: |
jbe/bsw@0 | 11 |
jbe/bsw@0 | 12 ui_deprecated.box{ |
jbe/bsw@0 | 13 label = 'My box label', |
jbe/bsw@0 | 14 class = 'my_css_class', |
jbe/bsw@0 | 15 content = function() |
jbe/bsw@0 | 16 ui_deprecated.text('My text') |
jbe/bsw@0 | 17 end |
jbe/bsw@0 | 18 } |
jbe/bsw@0 | 19 |
jbe/bsw@0 | 20 --]] |
jbe/bsw@0 | 21 |
jbe/bsw@0 | 22 function ui_deprecated.box(args) |
jbe/bsw@0 | 23 if args.class then |
jbe/bsw@0 | 24 args.html_options = args.html_options or {} |
jbe/bsw@0 | 25 args.html_options.class = args.class |
jbe/bsw@0 | 26 end |
jbe/bsw@0 | 27 ui_deprecated.tag('div', args) |
jbe/bsw@0 | 28 end |
jbe/bsw@0 | 29 |