NOTE: This is the TestCases web. You cannot edit any topic named "TestCase..." or "Web..." in this web, you can only create new topics. Any topics you do create that are not checked into subversion may be deleted by anyone, at any time.

TablePlugin tests

Basic layout

Table with top headers

Item Text
Item1 Lorem ipsum dolor sit amet, consectetur, adipisci velit.
Item9 Morel iptul domor tis ales, duit ausel vem eul iriure domor eu, feugias numma.
Item10 Neque porro quisquam est qui dolorem ipsum dolor sit amet, consectetur, adipisci velit.
Item11 Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo.
Item111 Us weiti enil ad linil venial, quit notsurd exerci sasion, nal miber domor.

Table with side headers

Header 1 Lorem ipsum dolor sit amet, consectetur, adipisci velit.
Header 2 Morel iptul domor tis ales, duit ausel vem eul iriure domor eu, feugias numma.
Header 3 Neque porro quisquam est qui dolorem ipsum dolor sit amet, consectetur, adipisci velit.

Table without headers

no header no header
text 1 text 2

Table with very wide header

Lorem ipsum dolor sit amet, consectetur, adipisci velit Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo
Lorem  
Ipsum Neque porro quisquam

Table with numbers and text

Numbers Texts
456 uvw
123 xyz
789 rst

Table with sortable single column:

Single column
text

Table with sortable single column, no header

Single column no header
text

Very simple table

Row 1 of 2

Complex table

One One One Two One Three
Two Two Two Three
Three One Three Three

More cellspan examples

vertical span table 1 normal
<- pipe-caret-pipe
cell cell cell
vertical span table 1 normal
<- pipe-caret-pipe
cell cell cell
vertical span cell cell
<- pipe-caret-pipe
cell cell cell

vertical span table 2 normal
<- pipe-space-caret-space-pipe
cell cell cell
vertical span cell cell
<- pipe-space-caret-space-pipe
cell cell cell

vertical span table 3 normal
<- pipe-space-caret-space-pipe
cell cell cell
vertical span cell cell
<- pipe-space-caret-space-pipe
cell cell cell

Complex table with headers

One One One Two One Three
Two Two Two Three
Three One Three Three

Vertical cellspan in headers

Web Sitemap VIEW CHANGE RENAME
Listed DENY ALLOW DENY ALLOW DENY ALLOW

Sorting

Table with mixed data

One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

Table with mixed data, no databg

%TABLE{databg="none"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

Table with mixed data, specified databg and headerbg

%TABLE{databg="#ffcc33" headerbg="#990033"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

headerbgsorted

OneSorted ascending Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

Sorting icons

One
DONE
IDEA!
DONE
DONE
REFACTOR
REFACTOR
QUESTION?
IDEA!
DONE

initsort

initdirection="up", column 1

OneSorted descending Two Three Four
3 ghi pqr 15 Jan 2006
2 def stu 31 Dec 1999
1 abc vwx 01 Jan 1900

initdirection="down", column 2

One TwoSorted ascending Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

no initdirection specified, column 3

One Two ThreeSorted ascending Four
3 ghi pqr 15 Jan 2006
2 def stu 31 Dec 1999
1 abc vwx 01 Jan 1900

headercolor

%TABLE{headercolor="#990000" headerbg="#eeeeee" headerbgsorted="#dddddd"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

%TABLE{headercolor="#990000" headerbg="#eeeeee"}%
Header 1 Lorem ipsum dolor sit amet, consectetur, adipisci velit.
Header 2 Morel iptul domor tis ales, duit ausel vem eul iriure domor eu, feugias numma.
Header 3 Neque porro quisquam est qui dolorem ipsum dolor sit amet, consectetur, adipisci velit.

datacolor

%TABLE{datacolor="#ff0000,#ff9933"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

tableborder

tableborder="5"

%TABLE{tableborder="5"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

tableborder="0"

%TABLE{tableborder="0"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

cellpadding

%TABLE{cellpadding="15"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

cellspacing

%TABLE{cellspacing="15"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

cellborder

cellborder="0"

%TABLE{cellborder="0" tableborder="0"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

cellborder="3"

%TABLE{cellborder="3" tableborder="3"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

Alignment

Cell alignment using spaces

Left aligned Not sure Middle Right aligned
1 abc vwxxxxxxxxx 01 Jan 1900
2 def stu 31 Dec 1999
3 xxxxxxxxxxxxxx ghi xxxxxxxx pqr xxxxxxxxx 15 Jan 2006

valign

%TABLE{valign="top"}%
One Two
Two
Three Four
1 abc vwx 01 Jan 1900
2 def Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. 31 Dec 1999
3 ghi pqr 15 Jan 2006

%TABLE{valign="middle"}%
One Two
Two
Three Four
1 abc vwx 01 Jan 1900
2 def Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. 31 Dec 1999
3 ghi pqr 15 Jan 2006

%TABLE{valign="bottom"}%
One Two
Two
Three Four
1 abc vwx 01 Jan 1900
2 def Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. 31 Dec 1999
3 ghi pqr 15 Jan 2006

%TABLE{valign="baseline"}%
One Two
Two
Three Four
1 abc vwx 01 Jan 1900
2 def Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. 31 Dec 1999
3 ghi pqr 15 Jan 2006

headervalign

%TABLE{headervalign="top"}%
One Two
Two
Three Four
1 abc vwx 01 Jan 1900
2 def Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. 31 Dec 1999
3 ghi pqr 15 Jan 2006

%TABLE{headervalign="middle"}%
One Two
Two
Three Four
1 abc vwx 01 Jan 1900
2 def Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. 31 Dec 1999
3 ghi pqr 15 Jan 2006

%TABLE{headervalign="bottom"}%
One Two
Two
Three Four
1 abc vwx 01 Jan 1900
2 def Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. 31 Dec 1999
3 ghi pqr 15 Jan 2006

%TABLE{headervalign="baseline"}%
One Two
Two
Three Four
1 abc vwx 01 Jan 1900
2 def Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. 31 Dec 1999
3 ghi pqr 15 Jan 2006

datavalign

%TABLE{datavalign="top"}%
One Two
Two
Three Four
1 abc vwx 01 Jan 1900
2 def Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. 31 Dec 1999
3 ghi pqr 15 Jan 2006

%TABLE{datavalign="middle"}%
One Two
Two
Three Four
1 abc vwx 01 Jan 1900
2 def Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. 31 Dec 1999
3 ghi pqr 15 Jan 2006

%TABLE{datavalign="bottom"}%
One Two
Two
Three Four
1 abc vwx 01 Jan 1900
2 def Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. 31 Dec 1999
3 ghi pqr 15 Jan 2006

%TABLE{datavalign="baseline"}%
One Two
Two
Three Four
1 abc vwx 01 Jan 1900
2 def Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. 31 Dec 1999
3 ghi pqr 15 Jan 2006

Combined headervalign and datavalign

%TABLE{headervalign="bottom" datavalign="top"}%
One Two
Two
Three Four
1 abc vwx 01 Jan 1900
2 def Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. 31 Dec 1999
3 ghi pqr 15 Jan 2006

headeralign

%TABLE{headeralign="left"}%
One Two A wide column three Four
1 abc vwx 01 Jan 1900
2 def Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. 31 Dec 1999
3 ghi pqr 15 Jan 2006

%TABLE{headeralign="center"}%
One Two A wide column three Four
1 abc vwx 01 Jan 1900
2 def Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. 31 Dec 1999
3 ghi pqr 15 Jan 2006

%TABLE{headeralign="right"}%
One Two A wide column three Four
1 abc vwx 01 Jan 1900
2 def Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. 31 Dec 1999
3 ghi pqr 15 Jan 2006

%TABLE{headeralign="justify"}%
One Two A wide column three Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. Four
1 abc vwx 01 Jan 1900
2 def Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. 31 Dec 1999
3 ghi pqr 15 Jan 2006

Mixed headeralign

%TABLE{headeralign="right,left,justify,right"}%
One Two A wide column three Four
1 abc def ghi jkl vwx 01 Jan 1900
2222 defdefdefdefdefdefdefdef Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. 31 Dec 1999
33333333 ghi pqr 15 Jan 2006

dataalign

%TABLE{dataalign="left"}%
One Two A wide column three Four
1 abc vwx 01 Jan 1900
2 def Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. 31 Dec 1999
3 ghi pqr 15 Jan 2006

%TABLE{dataalign="center"}%
One Two A wide column three Four
1 abc vwx 01 Jan 1900
2 def Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. 31 Dec 1999
3 ghi pqr 15 Jan 2006

%TABLE{dataalign="right"}%
One Two A wide column three Four
1 abc vwx 01 Jan 1900
2 def Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. 31 Dec 1999
3 ghi pqr 15 Jan 2006

%TABLE{dataalign="justify"}%
One Two A wide column three Four
1 abc vwx 01 Jan 1900
2 def Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. 31 Dec 1999
3 ghi pqr 15 Jan 2006

Mixed dataalign

%TABLE{dataalign="right,left,justify,right"}%
One Two A wide column three Four
1 abc def ghi jkl vwx 01 Jan 1900
2222 defdefdefdefdefdefdefdef Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. Sed ut perspiciatis, unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam eaque ipsa, quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt, explicabo. 31 Dec 1999
33333333 ghi pqr 15 Jan 2006

tablerules

none

%TABLE{tablerules="none" headerbg="#ffffff" headercolor="#ff0000"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

groups

%TABLE{tablerules="groups" headerbg="#ffffff" headercolor="#ff0000"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

With footerrows

%TABLE{footerrows="1" tablerules="groups" headerbg="#ffffff" headercolor="#ff0000"}%
One Two Three Four
Footer row
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

cols

%TABLE{tablerules="cols"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

rows

%TABLE{tablerules="rows"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

all

%TABLE{tablerules="all"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

tableframe

void

%TABLE{tableframe="void" tablerules="none" tableborder="4"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

above

%TABLE{tableframe="above" tablerules="none" tableborder="4"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

below

%TABLE{tableframe="below" tablerules="none" tableborder="4"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

lhs

%TABLE{tableframe="lhs" tablerules="none" tableborder="4"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

rhs

%TABLE{tableframe="rhs" tablerules="none" tableborder="4"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

hsides

%TABLE{tableframe="hsides" tablerules="none" tableborder="4"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

vsides

%TABLE{tableframe="vsides" tablerules="none" tableborder="4"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

box

%TABLE{tableframe="box" tablerules="none" tableborder="4"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

border

%TABLE{tableframe="border" tablerules="none" tableborder="4"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

tablewidth

in percentages

%TABLE{tablewidth="50%"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

in pixels

%TABLE{tablewidth="500px"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

columnwidths

in percentage

%TABLE{columnwidths="10%,20%,30%,40%"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

in pixels

%TABLE{columnwidths="50px,100px,150px,200px"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

headerrows

%TABLE{headerrows="2"}%
Table with two header rows
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

footerrows

%TABLE{footerrows="1"}%
One Two Three Four
Footer row
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

id

%TABLE{id="myTestTable"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

summary

%TABLE{summary="This is a summary"}%
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

caption

%TABLE{caption="This is a caption"}%
This is a caption
One Two Three Four
1 abc vwx 01 Jan 1900
2 def stu 31 Dec 1999
3 ghi pqr 15 Jan 2006

Topic revision: r0 - 2005-03-27 - TWikiContributor
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback