toggle

An article by Gaspard Bucher

insert/remove current node from a list

  1. action
  2. ajax
    1. add
    2. ajax?
    3. block
    4. cancel
    5. drop
    6. edit
    7. js
    8. start_node
    9. swap
    10. toggle
  3. API
  4. classes
  5. common attributes
  6. conditions
  7. context
  8. dates
  9. display
  10. forms
  11. i18n
  12. meta
  13. SQLiss
  14. urls

insert/remove current node from a list

  • set (relation name) relation to set
  • for (RubyLess) other side of the relation
see toggle, zena 1.0

Insert or remove an object from a list. The list can be a “context” Property or a relation. Example:

<span do='toggle' set='favorite' for='visitor'/>

See toggle attributes for details.

output

This is the result of a “toggle” attribute on a table row:

toggle example