filter

An article by Gaspard Bucher

Insert a form to create ajax calls to update the current block.

  1. action
  2. ajax
  3. API
  4. classes
  5. common attributes
  6. conditions
  7. context
  8. dates
  9. display
    1. add_btn
    2. add_document
    3. admin_links
    4. comments_count
    5. content_lang
    6. design
    7. filter
    8. flash_messages
    9. h
    10. img
    11. javascripts
    12. mail_hide
    13. min / max
    14. search_box
    15. set
    16. show
    17. stat
    18. stylesheets
    19. summary
    20. text
    21. title
    22. uses_datebox
    23. zazen
    24. zena
  10. forms
  11. i18n
  12. meta
  13. SQLiss
  14. urls

Insert a form to create ajax calls to update the current block.

  • key parameter name to use as filter attribute.
  • update (optional) target to update.
see block, start_node
See "block" for examples

Any argument passed in the “filter” method will passed through during the update (just like link).

<r:filter sel='#{params[:sel]}' update='foo' key='f'/>
<div do='block' name='foo'>
  "sel" parameter passed through: <b do='params[:sel]'/><br/>
  filter parameter "f": <b do='params[:f]'/>
</div>