plugin:tablefilterjs
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:tablefilterjs [2014-02-05 09:38] – [Discussion] freesz | plugin:tablefilterjs [2021-02-15 22:31] (current) – Aleksandr | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
- | email : szymon.olewniczak@rid.pl | + | email : solewniczak@rid.pl |
type : syntax | type : syntax | ||
- | lastupdate : 2013-06-17 | + | lastupdate : 2017-09-29 |
- | compatible : "Weatherwax" | + | compatible : 2018-04-22 |
depends | depends | ||
conflicts | conflicts | ||
similar | similar | ||
- | tags : tables javascript filter | + | tags : tables, javascript, filter |
- | + | ||
- | downloadurl: | + | |
- | bugtracker : https:// | + | |
- | sourcerepo : https:// | + | |
- | donationurl: | + | |
+ | downloadurl: | ||
+ | bugtracker : https:// | ||
+ | sourcerepo : https:// | ||
---- | ---- | ||
- | ===== Donate | + | ===== Description |
- | I'm a young student working on this plugin in my free time. So if you like this plugin you can [[https:// | + | |
- | ===== Description ===== | + | This plugin allows you to filter rows in your DokuWiki |
- | This plugin allows you to filter rows in your dokuwiki | + | |
===== Installation ===== | ===== Installation ===== | ||
- | Install | + | Search and install |
===== Examples/ | ===== Examples/ | ||
Let's say that we have table that contains names and birth' | Let's say that we have table that contains names and birth' | ||
+ | |||
<filter Birthday=/ | <filter Birthday=/ | ||
^Name^Birthday^ | ^Name^Birthday^ | ||
Line 39: | Line 36: | ||
|User 3|18-12-1994| | |User 3|18-12-1994| | ||
</ | </ | ||
- | or more briefly(using cols index instead of names). | + | |
+ | or more briefly (using cols index instead of names). | ||
<filter 2=/ | <filter 2=/ | ||
^Name^Birthday^ | ^Name^Birthday^ | ||
Line 46: | Line 45: | ||
|User 3|18-12-1994| | |User 3|18-12-1994| | ||
</ | </ | ||
+ | |||
This will return only the second row. | This will return only the second row. | ||
Now let's try something more complexed. For example select all persons born in 1994: | Now let's try something more complexed. For example select all persons born in 1994: | ||
+ | |||
<filter 2=/ | <filter 2=/ | ||
^Name^Birthday^ | ^Name^Birthday^ | ||
Line 55: | Line 56: | ||
|User 3|18-12-1994| | |User 3|18-12-1994| | ||
</ | </ | ||
+ | |||
Here we've used javascript regexp syntax. You can read more about it [[https:// | Here we've used javascript regexp syntax. You can read more about it [[https:// | ||
- | ==== Using tablefilterjs with include | + | ==== Using tablefilterjs with Include Plugin |
- | As I've mentioned before this plugin is mostly useful when used together with [[include]] plugin. You can read more about this plugin on it's page but there are several things to remember when you want to use it together with tablefilterjs. | + | |
- | To use dokuwiki | + | As I've mentioned before this plugin is mostly useful when used together with [[Include]] Plugin. You can read more about this plugin on it's page but there are several things to remember when you want to use it together with tablefilterjs. |
+ | |||
+ | To use DokuWiki | ||
<filter " | <filter " | ||
{{page> | {{page> | ||
</ | </ | ||
- | **Remeber | + | |
+ | **Remember | ||
There are also several other include flags that you may consider usefull: | There are also several other include flags that you may consider usefull: | ||
+ | |||
<filter " | <filter " | ||
{{page> | {{page> | ||
</ | </ | ||
- | This flags cause that only the source table will be shown, without unnecessary(headers, | + | |
+ | This flags cause that only the source table will be shown, without unnecessary (headers, footers, edit buttons). | ||
===== Syntax ===== | ===== Syntax ===== | ||
+ | |||
There are two variants of syntax. First allows you to use table headers as row names that will be used to filter table. Ex.: | There are two variants of syntax. First allows you to use table headers as row names that will be used to filter table. Ex.: | ||
+ | |||
<filter "Test row" | <filter "Test row" | ||
</ | </ | ||
+ | |||
If your header contains " you can use ' instead. Ex. | If your header contains " you can use ' instead. Ex. | ||
+ | |||
<filter 'Test " | <filter 'Test " | ||
</ | </ | ||
- | Alternativelly | + | |
+ | Alternatively | ||
<filter 'Test \' | <filter 'Test \' | ||
</ | </ | ||
Line 84: | Line 99: | ||
<filter 1=/another test/ 2=/ | <filter 1=/another test/ 2=/ | ||
</ | </ | ||
+ | |||
You can of course mix this two syntax variants: | You can of course mix this two syntax variants: | ||
+ | |||
<filter 1=/another test/ "Test row" | <filter 1=/another test/ "Test row" | ||
</ | </ | ||
- | After = you need to put JavaScript | + | After '' |
<filter 1=/another test/i> | <filter 1=/another test/i> | ||
</ | </ | ||
Line 100: | Line 118: | ||
=== Change Log === | === Change Log === | ||
- | {{rss> | + | {{rss> |
- | + | ||
- | === Known Bugs and Issues === | + | |
- | + | ||
- | Please report bug and issus on the project' | + | |
- | + | ||
- | + | ||
- | === ToDo/Wish List === | + | |
- | + | ||
- | If you have any wishes write it down here. | + | |
- | ===== FAQ ===== | + | **Releases: |
+ | {{rss> | ||
===== Discussion ===== | ===== Discussion ===== | ||
- | < | ||
- | 2013-06-21 (Rolew)</ | ||
- | * :!: This plugin breaks the Table of Contents on " | + | [[https://github.com/gkrid/dokuwiki-plugin-tablefilterjs/issues]] |
- | * I cannot reproduce it. Can you give me your use case which cause "Table of Contonts" | + |
plugin/tablefilterjs.1391589484.txt.gz · Last modified: 2014-02-05 09:38 by freesz