Difference: TablePlugin (36 vs. 37)

Revision 372015-07-28 - TWikiContributor

Line: 1 to 1
 

Table Plugin

Changed:
<
<
>
>
 
Changed:
<
<
>
>
 Control attributes of tables and sorting of table columns

Introduction

Changed:
<
<
The TablePlugin gives extra control of table display:
>
>
The TablePlugin gives extra control of TWiki table rendering using | cell 1 | cell 2 | syntax:
 
Changed:
<
<
  • Allows sorting
  • Changing table properties like border width, cell spacing and cell padding
  • Changing background color and text color for header cells
  • Changing background color and text color for data cells - colors can alternate
  • Table attributes can be set and overridden in this order:
    • Default TABLEATTRIBUTES Plugin setting in this topic.
    • A TABLEATTRIBUTES preferences setting on site-level (TWikiPreferences) or web-level (any WebPreferences), e.g.
>
>
  • Sort table by columns
  • Use TML (TWiki Markup Language) in table cells using |>> TML <<| syntax.
  • Support row spans using |^| syntax.
  • Change table properties, such as border width, cell spacing and cell padding.
  • Change background color and text color for header cells.
  • Change background color and text color for data cells - colors can alternate.
  • Set and override table attributes in this order:
    • Default TABLEATTRIBUTES Plugin setting in current topic.
    • A TABLEATTRIBUTES preferences setting on site-level (TWikiPreferences) or web-level (any WebPreferences), such as:
 
      • Set TABLEATTRIBUTES = tableborder="0" cellpadding="1" ...
Changed:
<
<
    • Before a table using %TABLE{...}%
  • Row spans
>
>
    • Before a table using %TABLE{...}%.
 

Sorting

Line: 36 to 39
 
  • number is digits, with optional decimal point
  • otherwise treated as text
Added:
>
>

Using TML in table cells

A TWiki table has a line-oriented markup, e.g. normally it is not possible to use other line-oriented TML, such as bullets or nested tables.

It is possible to introduce newlines in a table cell if the cell is enclosed in double-angle brackets, such as |>> TML <<|. Example:

You write:
| *A1* | *B1* | *C1* | *D1* |
| A2 |>> B2
   * Bullet
   * list
   * is
   * possible
<<|>> C2
  | *C2.1* | *C2.2* |
  | Embedded | table |
  | possible | too |
end C2
<<| D2 |
| A3 | B3 | C3 | D3 |
        You get:
A1 B1 C1 D1
A2 B2
  • Bullet
  • list
  • is
  • possible

C2
C2.1 C2.2
Embedded table
possible too
end C2
D2
A3 B3 C3 D3
 

Row spans

Changed:
<
<
Table cells with a single caret indicate follow-up rows of multi-row spans. For example,
>
>
Table cells with a single caret indicate follow-up rows of multi-row spans. Example:

You write:
 
| One One | One Two | One Three |
| ^ | Two Two | Two Three |
| Three One | ^ | Three Three |
Changed:
<
<
   
>
>
        You get:
 
One One One Two One Three
Two Two Two Three
Three One Three Three
Line: 163 to 209
 
Plugin Author: TWiki:Main.JohnTalintyre, TWiki:Main.PeterThoeny
Changed:
<
<
Copyright: © 2001-2003 TWiki:Main.JohnTalintyre,
© 2001-2013 Peter[at]Thoeny.org, TWiki.org,
© 2005-2013 TWiki:TWiki.TWikiContributor
>
>
Copyright: © 2001-2003 TWiki:Main.JohnTalintyre,
© 2001-2015 Peter[at]Thoeny.org, TWiki.org,
© 2005-2015 TWiki:TWiki.TWikiContributor
 
License: GPL (GNU General Public License)
Changed:
<
<
Plugin Version: 2014-01-21
>
>
Plugin Version: 2015-07-28
 
<--/twistyPlugin twikiMakeVisibleInline-->
Added:
>
>
2015-07-28: TWikibug:Item7679: TablePlugin may not put the default style on Fast CGI or mod_perl
2015-02-16: TWikibug:Item7604: Switch from GPL v2 to v3
2014-12-08: TWikibug:Item7594: Fix issue where bullet list was not closed properly at end of table cell (introduced 2014-12-08)
2014-12-08: TWikibug:Item7594: Support table cells with TML
 
2014-01-21: TWikibug:Item7416: TablePlugin causes an error with an illegal date such as 2013-00-00
2013-09-25: TWikibug:Item7151: Fix documentation to use Webster spelling
2013-06-21: TWikibug:Item7283: Auto-detect number of header rows when sorting; fix headerrows parameter issue
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.TablePlugin.