Tables syntax

Features

  • static (client side resolution)
    • support sortable columns
    • support filterable columns
    • support navigation
    • support functions (like sum of columns, etc.)
  • dynamic (ajax loading/actions, server side resolution)
    • support loading
    • support sortable columns
    • support filterable columns
    • support navigation
    • support functions (like sum of columns, etc.)
    • support editable cells
See:

Syntax

(% filter=filter %)
|| (% sortable=true %) col1 || col2
| cell1.1 | cell1.2
| cell2.1 | (% bgcolor=red %) cell2.2

Ideas of parameters

Parameters are inherited from parents. For example if table as "align=center" and one of its cells has "align=none" then all the cell get "align=center" except for the one which overwritten it alignment configuration.

  • table
    • filter
      • value: default is none
        • none: disable filter. It's the default.
        • filter: write in a input field, the filtering is made on the fly.
        • select: choose in the list of all possible values found in the column.
    • sortable
      • value: boolean, default is false.
      • description: enable/disable sorting.
    • datasource
      • value: any link of the wiki link format. See XWiki Syntax20?. Default is disabled.
      • description: the ajax target which generate the json used to fill the table. At table level it replace the whole table.
  • row
    • datasource : (see table). At row level it's inserted in the table.
  • head cell
    • filter (see table)
    • sortable (see table)
  • cell
  • all levels
    • align
      • value: default is none
        • none: disable align.
        • center: align center in the the cell.
        • right: align to the right of the cell.
        • left: align to the left of the cell.
Tags:
Created by Thomas Mortagne on 2008/09/12 14:07
   

Get Connected