Closed jercle closed 9 years ago
Hi,
As you figured out, you should transform the options into HTML5 attribute parameters (as mentioned here: https://datatables.net/manual/options#HTML-5-data-attributes), without the data-
prefix (it is added by DokuWiki DataTables plugin).
But even that page is not very clear. In fact, the values of your options can be JSON data, exactly like you could have done if initializing the DataTables library from JavaScript. So I guess in the case you mention, you would write search='{"search":"fred"}'
.
Note that because your value must be valid JSON, the key and value strings "search"
and "fred"
must be wrapped with double quotes "
, whereas the entire attribute value be wrapped with single quotes '
.
But for this to be correctly used by DokuWiki DataTables plugin, you will have to modify it first, as explained in issue #7 .
I hope this will work for you.
Hi again,
The plugin is now updated with modification described in #7 incorporated as pull request #9, so it should work by simply updating it through DokuWiki.
Please make sure to use the syntax above.
Hope this helps.
Thank you for the information, greatly appreciated!
Regards, Evan
On 20 September 2015 at 12:50, ghybs notifications@github.com wrote:
Hi again,
The plugin is now updated with modification described in #7 https://github.com/LotarProject/dokuwiki-plugin-datatables/issues/7 incorporated as pull request #9 https://github.com/LotarProject/dokuwiki-plugin-datatables/pull/9, so it should work by simply updating it through DokuWiki.
Please make sure to use the syntax above.
Hope this helps.
— Reply to this email directly or view it on GitHub https://github.com/LotarProject/dokuwiki-plugin-datatables/issues/10#issuecomment-141732035 .
Page says 'See https://datatables.net/reference/option/ for complete options. ' although I was wondering how I would format the other options, such as 'search.search' within Dokuwiki as search.search="fred" will not work and generate data-search.search"fred" html