-
Notifications
You must be signed in to change notification settings - Fork 0
WD ATTR Tsort Tool
wdonadelli edited this page Apr 2, 2022
·
3 revisions
The reference for how the attribute works is in the following tools:
The attribute targets are the cell elements (th or td) contained in the row element (tr) inserted in the table header (thead). The result influences the row elements (tr) inserted in the table body (tbody).
<table>
<thead>
<tr>
<th>#</th>
<th data-wd-tsort="" >Col 1</th>
<th data-wd-tsort="" >Col 2</th>
<th data-wd-tsort="" >Col 3</th>
</tr>
</thead>
<tbody>
<tr><td>0</td><td>D</td><td>A</td><td>D</td></tr>
<tr><td>1</td><td>C</td><td>C</td><td>B</td></tr>
<tr><td>2</td><td>B</td><td>B</td><td>A</td></tr>
<tr><td>3</td><td>A</td><td>D</td><td>C</td></tr>
</tbody>
</table>When the element with the attribute is clicked, its column will be sorted in ascending order. If you click again, the sort order will be reversed.
- WD Web Libraries | v4.4.4 | 2023-02-22
- Updated on 2023-02-22
- WD JS Array Tools
- WD JS Date Tools
- WD JS DOM Tools
- WD JS Number Tools
- WD JS Text Tools
- WD JS Time Tools
- WD ATTR Chart Tool
- WD ATTR Click Tool
- WD ATTR CSS Tool
- WD ATTR Data Tool
- WD ATTR Device Tool
- WD ATTR Edit Tool
- WD ATTR Filter Tool
- WD ATTR Full Tool
- WD ATTR Jump Tool
- WD ATTR Lang Tool
- WD ATTR Load Tool
- WD ATTR Mask Tool
- WD ATTR Nav Tool
- WD ATTR NoBubbles Tool
- WD ATTR Output Tool
- WD ATTR Page Tool
- WD ATTR Repeat Tool
- WD ATTR Send Tool
- WD ATTR Set Tool
- WD ATTR Shared Tool
- WD ATTR Slide Tool
- WD ATTR Sort Tool
- WD ATTR Tsort Tool
- WD ATTR Translate Tool
- WD ATTR URL Tool
- WD ATTR Vform Tool