How would one use DataTables with csv-to-html-table (hide row and always show specific rows at top)

How would one use DataTables with csv-to-html-table (hide row and always show specific rows at top)

SkyriderSkyrider Posts: 1Questions: 1Answers: 0
edited September 2017 in Free community support

I recently came across https://github.com/derekeder/csv-to-html-table

And I noticed that you have the ability to use datatables_options.

The code appears to be entered within index.html, with the existing example:

datatables_options: {"paging": false},

I noticed that some of the datatables options have a higher requirements of code, how would one implement such code within the csv-to-html-table system. Setting paging to false, is relatively easy to do.

But what I'd like is having one of these features (also tell me if these are possible).

1). Hide specific rows from showing for the end user.
2). Set specific rows as 'top' rows.

The html csv-to-html-table system sets the first row as 'head', so regardless if you search for a specific text or order the rows, the first row won't nudge. I have a few other rows which I'd like to act as head rows as well. Wondering if this would be possible with datatables.

Number 2 is most important to me. Seeing 2 of the extra rows shows a time and total, I'd like to set them acting as head rows as well, so regardless if I set the row order (A to Z, or Z to A), those rows stays at the top.

Appreciate all the help I can get while I'm learning more.

Regards,
Skyrider

This discussion has been closed.