webmcp

diff framework/env/ui/link.lua @ 12:f3d3203cd2e4

Documentation for partial loading added

NOTE: Previous changeset d76a8857ba62 also modified behaviour of ui.script: Scripts containing "]]>" are now rejected to avoid ambiguities
author jbe
date Fri Feb 19 16:43:29 2010 +0100 (2010-02-19)
parents d76a8857ba62
children 2a3257f29c02
line diff
     1.1 --- a/framework/env/ui/link.lua	Fri Feb 12 18:40:22 2010 +0100
     1.2 +++ b/framework/env/ui/link.lua	Fri Feb 19 16:43:29 2010 +0100
     1.3 @@ -10,16 +10,22 @@
     1.4    routing   = routing,    -- optional routing information for action links, as described for ui.form{...}
     1.5    text      = text,       -- link text
     1.6    content   = content,    -- link content (overrides link text, except for submit buttons for action calls without JavaScript)
     1.7 -  partial   = {           -- TODO: documentation
     1.8 +  partial   = {           -- parameters for partial loading, see below
     1.9      module = module,
    1.10      view   = view,
    1.11      id     = id,
    1.12 -    params = params
    1.13 +    params = params,
    1.14 +    target = target
    1.15    }
    1.16  }
    1.17  
    1.18  This function inserts a link into the active slot. It may be either an internal application link ('module' given and 'view' or 'action' given), or a link to an external web page ('external' given), or a link to a file in the static file directory of the application ('static' given).
    1.19  
    1.20 +When passing a table as "partial" argument, AND if partial loading has been enabled by calling ui.enable_partial_loading(), then ui._partial_load_js is
    1.21 +used to create an onclick event (onsubmit event for action links). The
    1.22 +"partial" setting table is passed to ui._partial_load_js as first argument.
    1.23 +See ui._partial_load_js(...) for further documentation.
    1.24 +
    1.25  --]]--
    1.26  
    1.27  function ui.link(args)

Impressum / About Us