webmcp

diff framework/env/ui/paginate.lua @ 79:3a6962b9121c

Anchor support for encode.url{...}, ui.link{...} and ui.paginate{...}
author jbe
date Wed Jun 27 18:57:53 2012 +0200 (2012-06-27)
parents 17435a7d252b
children ca3f7b001014
line diff
     1.1 --- a/framework/env/ui/paginate.lua	Thu Jun 21 17:18:44 2012 +0200
     1.2 +++ b/framework/env/ui/paginate.lua	Wed Jun 27 18:57:53 2012 +0200
     1.3 @@ -1,6 +1,7 @@
     1.4  --[[--
     1.5  ui.paginate{
     1.6 -  selector       = selector,       -- a selector for items from the database
     1.7 +  selector       = selector,       -- a selector for items from the database (will be modified)
     1.8 +  anchor         = anchor,         -- optional name of anchor in document to jump to
     1.9    per_page       = per_page,       -- items per page, defaults to 10
    1.10    container_attr = container_attr  -- html attr for the container element
    1.11    name           = name,           -- name of the CGI get variable, defaults to "page"
    1.12 @@ -61,6 +62,7 @@
    1.13            view   = request.get_view(),
    1.14            id     = id,
    1.15            params = params,
    1.16 +          anchor = anchor,
    1.17            text   = tostring(page),
    1.18            partial = partial
    1.19          }

Impressum / About Us