| <?xml version='1.0'?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| |
| --> |
| |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| <head> |
| <title>tree - example</title> |
| |
| <link href="/style/style.css" media="screen" rel="stylesheet" type="text/css" /> |
| <link href="./style/demo.css" media="screen" rel="stylesheet" type="text/css" /> |
| |
| <style type="text/css"> |
| .col1 { |
| width: 7em; |
| } |
| |
| .col2 { |
| width: 6em; |
| } |
| </style> |
| |
| </head> |
| |
| <body> |
| |
| <!-- content --> |
| <div id="tx-content" class="demo"> |
| |
| <!-- tree view --> |
| <div class="tx-tree"> |
| |
| <!-- contains the tree --> |
| <div class="tx-tree-view"> |
| <table class="tx-table"> |
| <tr> |
| <th></th> |
| <th>Concepts</th> |
| <th class="col1">Tagged pages</th> |
| <th class="col2">In concepts</th> |
| </tr> |
| </table> |
| <!-- example folder structure --> |
| <ol> |
| <!-- tx-open, shows the arrow down on a "open" element --> |
| <li class="tx-open"> |
| <!-- li content is wrapped inside a div to avoid some javascript event problems, eg. drag drop events can be assigned to the div instead --> |
| <div> |
| <!-- span class tx-info should be correspond with the table th widths --> |
| <span class="tx-info"><span class="col1">9</span><span class="col2">3</span></span> |
| <!-- drag icon --> |
| <div title=" Themes..." class="tx-icon tx-icon-drag">drag me</div> |
| <!-- checkbox --> |
| <input type="checkbox" /><!-- name --><a href=""></a><a href="">Themes...</a> |
| </div> |
| <!-- subelements of an li --> |
| <ol> |
| <li class="tx-open"><div> |
| <span class="tx-info"><span class="col1">29</span><span class="col2">2</span></span> |
| <div title=" Where" class="tx-icon tx-icon-drag">drag me</div> |
| <input type="checkbox" /><a href=""></a><a href=""> Where</a> |
| </div> |
| <ol> |
| <!-- li default shows an right arrow as background --> |
| <li><div> |
| <span class="tx-info"><span class="col1">51</span><span class="col2">5</span></span> |
| <div title="Africa" class="tx-icon tx-icon-drag">drag me</div> |
| <input type="checkbox" /><a href=""></a><a href="">Africa</a> |
| </div></li> |
| <li><div> |
| <span class="tx-info"><span class="col1">8</span><span class="col2">6</span></span> |
| <div title="Asia" class="tx-icon tx-icon-drag">drag me</div> |
| <input type="checkbox" /><a href=""></a><a href="">Asia</a> |
| </div></li> |
| <!-- tx-nobg, shows no arrow on a element, e.g. element has no subelements --> |
| <li class="tx-nobg"><div> |
| <span class="tx-info"><span class="col1">70</span><span class="col2">2</span></span> |
| <div title="Ecoregions" class="tx-icon tx-icon-drag">drag me</div> |
| <input type="checkbox" /><a href=""></a><a href="">Ecoregions</a> |
| </div></li> |
| </ol> |
| </li> |
| </ol> |
| </li> |
| </ol> |
| <!-- // example folder structure--> |
| </div> |
| <!-- // tree view --> |
| |
| <div id="demo"> |
| <h3>Description</h3> |
| |
| In the tx-content a <div> with class <b>tx-tree</b> is created. |
| <br/> |
| <br/> |
| |
| In the <strong>li</strong> elements of the <strong>tx-tree-view</strong> are the <strong>span.tx-info</strong>, which referes to the <strong>table th</strong>. |
| <br/> |
| <br/> |
| |
| <strong>tx-tree-view</strong> contains the tree view. for a better description, how the tree view is defined, refer the source code (context highlighting in the browser) |
| <br/> |
| <br/> |
| The current example has no ids or names defined, if necessary they have to be defined contextually. |
| <br/> |
| |
| |
| <strong>div.tx-tree</strong> is the main container for the tree view. If no class is defined on the <strong>div.tx-tree</strong> element the tree has 100% width. |
| <br/> |
| The classes <strong>.tx-show-panel</strong>, <strong>.tx-hide-panel</strong> and <strong>.tx-halfwidth-left</strong> define the position of the tree view. |
| <br/> |
| <br/> |
| |
| <strong>.tx-show-panel</strong>: position with a panel on the left side.<br/> |
| <strong>.tx-hide-panel</strong>: position with a panel on the left side, hidden.<br/> |
| <strong>.tx-halfwidth-left</strong>: position on the left side 50% width.<br/> |
| <br/> |
| <br/> |
| |
| |
| |
| <h3>Example code</h3> |
| |
| <pre> |
| <!-- contains the tree --> |
| <div class="tx-tree-view"> |
| <table class="tx-table"> |
| <tr> |
| <th></th> |
| <th>Concepts</th> |
| <th class="col1">Tagged pages</th> |
| <th class="col2">In concepts</th> |
| </tr> |
| </table> |
| <!-- example folder structure --> |
| <ol> |
| <!-- tx-open, shows the arrow down on a "open" element --> |
| <li class="tx-open"> |
| <!-- li content is wrapped inside a div to avoid some javascript event problems, eg. drag drop events can be assigned to the div instead --> |
| <div> |
| <!-- span class tx-info should be correspond with the table th widths --> |
| <span class="tx-info"><span class="col1">9</span><span class="col2">3</span></span> |
| <!-- drag icon --> |
| <div title=" Themes..." class="tx-icon tx-icon-drag">drag me</div> |
| <!-- checkbox --> |
| <input type="checkbox" /><!-- name --><a href=""></a><a href="">Themes...</a> |
| </div> |
| <!-- subelements of an li --> |
| <ol> |
| <li class="tx-open"><div> |
| <span class="tx-info"><span class="col1">29</span><span class="col2">2</span></span> |
| <div title=" Where" class="tx-icon tx-icon-drag">drag me</div> |
| <input type="checkbox" /><a href=""></a><a href=""> Where</a> |
| </div> |
| <ol> |
| <!-- li default shows an right arrow as background --> |
| <li><div> |
| <span class="tx-info"><span class="col1">51</span><span class="col2">5</span></span> |
| <div title="Africa" class="tx-icon tx-icon-drag">drag me</div> |
| <input type="checkbox" /><a href=""></a><a href="">Africa</a> |
| </div></li> |
| <!-- tx-nobg, shows no arrow on a element, e.g. element has no subelements --> |
| <li class="tx-nobg"><div> |
| <span class="tx-info"><span class="col1">70</span><span class="col2">2</span></span> |
| <div title="Ecoregions" class="tx-icon tx-icon-drag">drag me</div> |
| <input type="checkbox" /><a href=""></a><a href="">Ecoregions</a> |
| </div></li> |
| </ol> |
| </li> |
| </ol> |
| </li> |
| </ol> |
| <!-- // example folder structure--> |
| </div> |
| <!-- // tree view --> |
| </pre> |
| |
| </div> |
| </div> |
| </div> |
| <!-- // content --> |
| |
| |
| |
| </body> |
| </html> |
| |