So I have a WPDataTable on a page, and I have a counter that counts the number of times some CSS classes occur in the table.
So for example, I have a table of 50 rows, each row has different CSS classes that occur multiple times on the table.
I have a JS script that counts the occurence, but right now the table HAS to be on the page where the script is, is there a way I can fetch only the css class count from the table without having to load the entire table on the page?
Maybe something like this feature: [wpdatatable_sum table_id=66 col_id=558] but for CSS class count?
Sorry to disappoint you, but this can not be done. The script does have to be on the same page with the table.
- Perhaps it could only be done with non-server side tables because they load entirely only on the front-end, but we have not had a chance to test something like this yet.
Hi,
So I have a WPDataTable on a page, and I have a counter that counts the number of times some CSS classes occur in the table.
So for example, I have a table of 50 rows, each row has different CSS classes that occur multiple times on the table.
I have a JS script that counts the occurence, but right now the table HAS to be on the page where the script is, is there a way I can fetch only the css class count from the table without having to load the entire table on the page?
Maybe something like this feature: [wpdatatable_sum table_id=66 col_id=558] but for CSS class count?
Kind regards,
Francis.
Hi, Francis
Thanks for reaching out to us.
Sorry to disappoint you, but this can not be done. The script does have to be on the same page with the table.
- Perhaps it could only be done with non-server side tables because they load entirely only on the front-end, but we have not had a chance to test something like this yet.
Kind Regards,
Miloš Jovanović
[email protected]
Rate my support
Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables