finanalyst / grav-plugin-datatables

Grav plugin shortcode to add in DataTables Jquery
MIT License
8 stars 2 forks source link

`grav-id` parameter does not work #3

Closed marshmn closed 4 years ago

marshmn commented 5 years ago

The grav-id parameter is supposed to allow the setting of an id on the rendered table, however this does not appear to work.

finanalyst commented 5 years ago

Hi Matt, Thanks for your help on another plugin. Can you give me an example that does not work. I have used the id for a table.

marshmn commented 5 years ago

Sorry for taking so long to reply... I've only just returned to this...

Here is an example:

[datatables grav-id=foo]
| Header 1 | Header 2 |
|----------|----------|
| ABC      | DEF      |
[/datatables]

And here is the HTML produced: Selection_056