<table-plus>

An enhanced version of Rapid’s <table> that has support for column sorting, searching and pagination.

This tag calls <table>, so the parameters for <table> are also available.

The enhancements made available in this tag require controller support.

An worked example of this tag is available in the Agility Tutorial

Parameters

  • header
    • search-filter
  • table
    • #{scope.field_name}-heading
      • #{scope.field_name}-heading-link
      • up-arrow
      • down-arrow
  • empty-message
  • page-nav

Attributes

All attributes supported by <table> and <with-fields> are supported.

AJAX attributes are passed through to the sort links and the search form.

sort-field: defaults to @sort_field, if that is available. parse_sort_params sets this variable

sort-direction: ‘asc’ or ‘dec’. defaults to @sort_direction, if that is available. parse_sort_params sets this variable

sort-columns: a hash that allow you to map fields to sortable columns. The default is {“this” => “name”} (or whatever column that has the :name option set on it).

Show Source

Related Tags


Edit this page