XWikiSyntax20_table

Last modified by Vincent Massol on 2008/09/30 13:52

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 XWikiSyntax20. 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.

Get Connected