The TablePlugin gives extra control of table display:
TABLEATTRIBUTES
Plugin setting in this topic.
TABLEATTRIBUTES
preferences setting on site-level (TWikiPreferences) or web-level (any WebPreferences), e.g. Set TABLEATTRIBUTES = tableborder="0" cellpadding="1" ...
%TABLE{...}%
Click on column heading text to sort by a column. Initial column will be sorted in descending order, click again to get ascending order. The type of data in the cell is determined automatically:
Table cells with a single caret indicate follow-up rows of multi-row spans. For example,
| One One | One Two | One Three | | ^ | Two Two | Two Three | | Three One | ^ | Three Three | |
|
Attributes are defined as a TABLEATTRIBUTES
Plugin setting in this topic, a TABLEATTRIBUTES
preferences setting, or on line before the table using %TABLE{...}%
:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The %TABLE{...}%
settings override TABLEATTRIBUTES
preferences settings, which override the TABLEATTRIBUTES
Plugin settings.
The setting disableallsort
is normally not used as a TABLE or TABLEATTRIBUTES setting. Plugins such as EditTablePlugin dynamically sets disableallsort
to disable sorting while editing a table. For this to work it is important that EditTablePlugin runs before TablePlugin, which is the default. The setting sort
can be overwritten by a URL parameter or hidden formfield of the same name. Plugins such as EditTablePlugin can use this to disable table header sorting while in edit mode.
Line before table: %TABLE{ sort="on" tableborder="0" cellpadding="4" cellspacing="3" cellborder="0" headerbg="#D5CCB1" headercolor="#666666" databg="#FAF0D4, #F3DFA8" headerrows="2" footerrows="1" }%
|
|||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||
Information for programmers.
TablePlugin implements the following precedence:
TABLEATTRIBUTE
settings only write html styling, no CSS
TABLEATTRIBUTE
settings can be overridden by a skin's CSS
TABLE
tag attributes are converted to CSS styling, written in the head; these override any skin's CSS
|
|||||||||||||||||||||
Plugin settings are stored as preferences variables. To reference a plugin setting write %<plugin>_<setting>%
, for example, %TABLEPLUGIN_SHORTDESCRIPTION%
data/debug.txt
. Default: 0
all
, all tables that have a header row (including those that do not have %TABLE before them) will be made sortable. If set to none
, only tables with %TABLE will be sortable. Topic rendering is faster if this is set to none
.
This plugin is pre-installed. TWiki administrators can upgrade the plugin as needed on the TWiki server.
TablePlugin.zip
in your twiki installation directory. Content:
|
|||||||||||
|
|||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||
Related Topics: VarTABLE, TWikiPreferences, TWikiPlugins, StandardColors
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Microchip® and others, are registered trademarks or trademarks of Microchip Technology Inc. and its subsidiaries.
Arm® and others are registered trademarks or trademarks of Arm Limited (or its affiliates). Other terms and product names may be trademarks of others.
Ideas, requests, contributions ? Connect to LinksToCommunities page.