samsk
Forum Replies Created
-
Forum: Plugins
In reply to: [WP DataTable] Basic questionHi,
yes, table with id “table1” should already exists, probably already filled with data, or only as empty element for loading them later via datatables xhr request.Forum: Plugins
In reply to: [WP DataTable] Column visibilityThis is not possible with this plugin, you’ve to use some other plugin to generate different configs/pages for different users.
Forum: Plugins
In reply to: [WP DataTable] Will this work with Airtable?Hi, it will probably not work out-of-the box. First you have to embed data from airtable as html table in page (maybe via javascript) and then you can use this plugin.
Forum: Plugins
In reply to: [WP DataTable] RL FilteringHi,
this plugin only provisions DataTables (https://datatables.net/), so questions regarding DataTables itself should be asked on datatables related forumns.Forum: Plugins
In reply to: [WP DataTable] responsive.details.displaySmth. like this should work:
responsive: { details: { jQuery.fn.dataTable.responsive.display.childRowImmediate } }
‘$’ sign is reference to jQuery, but wordpress has this shorthand disabled…
Forum: Reviews
In reply to: [WP DataTable] Can’t believe it isn’t more popularThanks, I’m glad it helped you ??
Forum: Plugins
In reply to: [WP DataTable] Pass JavaScript array as dataInsides of shortcode are interpreted as javascript configuration array (JSON).
Forum: Plugins
In reply to: [WP DataTable] Making Some Columns Not SortableYes, datatables is very flexible there multiple ways how to achieve one think…
Thanks for info, I’ve fixed it and released new version.Forum: Plugins
In reply to: [WP DataTable] Making Some Columns Not SortableSomething like this should work:
[wp-datatable id="table1"] "columns": [ {"name": "first", "orderable": "false"}, {"name": "second", "orderable": "true"}, {"name": "third", "orderable": "true"}, {"name": "fourth", "orderable": "true"} ], "order": [[1, 'asc']] [/wp-datatable]
Forum: Plugins
In reply to: [WP DataTable] How to use the wp datatableUse the shortcode within somewhere with page or post – I don’t know how your table is included.
From plugin itself you can always use do_shortcode() function.Forum: Plugins
In reply to: [WP DataTable] How to use the wp datatableNot sure what do you mean with ‘table generated from a MySQL query’, if I can not see it, i’cant give you exact advice.
But, you should be able to use the shortcode anywhere. The javascript init part executed once the document is ready => jQuery().ready()
Forum: Plugins
In reply to: [WP DataTable] How to use the wp datatableThis plugin does post-processing on frontend (in browser).
So once you have some table with specific ID, just use anywhere plugin shortcode with that ID. When viewing affected page, plugin will generate javascript, that will instantiate datatables on given table ID.There is no frontend, datatables are too powerfull and complicated for that.
For static table just add shortcode after that table.
Example:
<table id="table1"> <thead>.... <tbody>.... </table> [wp-datatable id="table1"] responsive: true [/wp-datatable]
Forum: Plugins
In reply to: [WP DataTable] Ellipses possible for long text?Hi, i’ve never use it but it should be possible with this external plugin:
https://datatables.net/plug-ins/dataRender/ellipsis
Sam
Forum: Plugins
In reply to: [WP DataTable] How to add a filter?Hi, I don’t understand your question.
Our shortcode is [wp-datatable], and Visual Composer is unknown to me.
Please, include some examples.Forum: Plugins
In reply to: [WP DataTable] Using Json data for inputTry to debug it with browser console, there you should see possible error.