DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:tablelayout

tablelayout Plugin

Compatible with DokuWiki

  • 2017-02-19 "Frusterick Manners" unknown
  • 2016-06-26 "Elenor Of Tsort" yes
  • 2015-08-10 "Detritus" unknown
  • 2014-09-29 "Hrun" unknown

plugin Set the width of table columns, freeze header rows, float the table, integrates with edittable plugin

Last updated on
2017-08-16
Provides
Syntax, Action
Repository
Source
Conflicts with
datatables, tablewidth
Requires
edittable

Similar to tablewidth

Tagged with tables

A CosmoCode Plugin

Installation

Install the plugin using the Extension Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.

Examples/Usage

The follwing example syntax will make the first fixed and show about 1 other row in a scrollable container below. It will make the first column 20px wide and the second 30px. The table itself will be floating to the right.

{{tablelayout?colwidth="20px,30px"&rowsFixed=1&rowsVisible=2&float=right}}
^ header 1 ^ header 2 ^
| cell A1 | cell B1 |
| cell A2 | cell B2 |
| cell A3 | cell B3 |

Syntax

The basic boilerplate is {{tablelayout?options}}. The options are specified like URL parameters:

Column widths

The option is colwidth and it expects a "-wrapped, ,-separated list of column-widths including the px unit. If you do not want to define the width of an element use -.

fixed header rows

You have to specify the two options rowsFixed and rowsVisible. The first expects a positive integer specifying the number of rows that are fixed at the top. rowsVisible sets the number of rows that are visible below the fixed rows.

Floating

The option float takes one of three possible values: left, right, center. left and right let the table float to the left or right, center centers the table on the page.

Development

Commit-Ticker

plugin/tablelayout.txt · Last modified: 2017-09-07 16:24 by grosse