You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.2 KiB

  1. Search views
  2. ============
  3. On search views, this addon allows developers to show a predefined range of intervals. Use ``widget="date_interval"`` and an options dictionary to configure the addon, at least a type of interval. Currently, the only supported interval type is `iso_week`: ``options="{'type': 'iso_week'}"``.
  4. Configuration options
  5. ---------------------
  6. type
  7. Possible values are ``iso_week`` (shows iso week numbers)
  8. date
  9. The reference date from which to calculate intervals if different from `now`
  10. lookahead
  11. The amount of intervals after `date` to offer to the user
  12. lookbehind
  13. The amount of intervals before `date` to offer to the user
  14. exclusive
  15. If truthy, selecting one interval will unselect all already selected intervals. If not set (default), selecting multiple intervals will yield a domain for all selected intervals
  16. cycle
  17. If truthy, the currently selected interval will be used for setting the reference date. The effect is that you can cycle through intervals rapidly in combination with `exclusive = 1` and `dropdown = 1`
  18. dropdown
  19. If truthy (default), the intervals to choose are shown as a dropdown menu