plugin:sortablejs
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:sortablejs [2016-05-26 21:22] – vaxquis | plugin:sortablejs [2024-02-08 09:11] (current) – LMS23 | ||
---|---|---|---|
Line 3: | Line 3: | ||
---- plugin ---- | ---- plugin ---- | ||
description: | description: | ||
- | author | + | author |
email : spamove@gmail.com | email : spamove@gmail.com | ||
type : syntax | type : syntax | ||
- | compatible : anteater, angua, Rincewind, | + | lastupdate : 2023-04-12 |
+ | compatible : Anteater, Angua, Rincewind, | ||
depends | depends | ||
- | conflicts | + | conflicts |
- | similar | + | similar |
tags : javascript, tables, sort, listing | tags : javascript, tables, sort, listing | ||
- | downloadurl: | + | downloadurl: |
- | sourcerepo : https:// | + | sourcerepo : https:// |
- | bugtracker : https:// | + | bugtracker : https:// |
---- | ---- | ||
===== Description ===== | ===== Description ===== | ||
- | This plugin adds a JavaScript, which can be used to create sortable tables | + | A JavaScript-based (client-side) plugin, which can be used to create sortable tables. It is optional for [[linkmanager]] plugin. |
+ | |||
+ | For server-side sorting or more robust sort facilities use Sam Wilson' | ||
+ | |||
+ | Previously maintained by oiv (Otto Vainio at otto@valjakko.net) | ||
===== Usage ===== | ===== Usage ===== | ||
Line 28: | Line 33: | ||
< | < | ||
< | < | ||
- | ^Col1^Col3^Col3^ | + | ^ Col1 ^ Col3 ^ Col3 ^ |
- | |1|one|25/12/2008| | + | | 1 |
- | |2|two|10/12/2008| | + | | 2 |
</ | </ | ||
</ | </ | ||
Line 37: | Line 42: | ||
< | < | ||
< | < | ||
- | ^Col1^Col3^Col3^ | + | ^ Col1 ^ Col3 ^ Col3 ^ |
- | |1|one|25/12/2008| | + | | 1 |
- | |2|two|10/12/2008| | + | | 2 |
</ | </ | ||
</ | </ | ||
Line 46: | Line 51: | ||
< | < | ||
< | < | ||
- | ^Col1^Col3^Col3^ | + | ^ Col1 ^ Col3 ^ Col3 ^ |
- | |1|one|25/12/2008| | + | | 1 |
- | |2|two|10/12/2008| | + | | 2 |
</ | </ | ||
</ | </ | ||
Line 57: | Line 62: | ||
< | < | ||
- | < | + | < |
< | < | ||
Line 64: | Line 69: | ||
││ | ││ | ||
││ | ││ | ||
- | ││ | + | ││ |
││ | ││ | ||
│└ Initially sort by column 1 on page load | │└ Initially sort by column 1 on page load | ||
Line 70: | Line 75: | ||
</ | </ | ||
- | ===== Older versions ===== | + | Columns sorted as special data types |
- | historical: https://github.com/FyiurAmron/sortablejs/wiki/older-versions | + | < |
+ | < | ||
+ | ^ Col1 ^ Col3 ^ Col3 ^ Col4 | ||
+ | | one | 02/25/2008 | 34°C | € 23,42| 205-8795| | ||
+ | | two | 02/14/2008 | 12°C | € 193,54| 442-0026| | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | Date type is sorted, if, e.g. US american date format mm/dd/yyyy is used. The date sorting is done via //Date()// object, which, in theory, should work like this: https://developer.mozilla.org/en-US/docs/Web/JavaScript/ | ||
+ | |||
+ | In practice, it usually accepts legacy formats (based on browser etc.), e.g.: | ||
+ | * mm-dd-yyyy | ||
+ | * yyyy/ | ||
+ | * mm/ | ||
+ | * mmmm dd, yyyy | ||
+ | * mmm dd, yyyy | ||
+ | Of course, the format yyyy-mm-dd will always be correctly sorted, when labeled as //alpha// and even if not labeled at all. | ||
- | GitHub revision history: https:// | + | The implementation of type numeric is capable of cutting off units before and after numeric values. This makes it efficient to sort e.g. prices and temperature values with units attached. |
- | ===== Known bugs ===== | + | ===== Misc links ===== |
- | historical: https:// | + | |
- | current: https:// | + | * Historical versions: https:// |
+ | * GitHub revision history: https:// | ||
+ | * Historical bugs/ | ||
+ | * current |
plugin/sortablejs.1464290550.txt.gz · Last modified: 2016-05-26 21:22 by vaxquis