Updating classes of hidden/filtered out rows
Updating classes of hidden/filtered out rows
Hello
I have a problem to which I could no find solution. In my table I implemeted an option of showing the row data in the plot. This works fine by clicking the link in the opened details of the row. This changes the formating of the formatting of the data in the row to easily see that it has already been added to the plot. The same link allows also for removal of these paricular data from the plot.
As my table has 1000s of rows and removing data from the plot one by one is not very user friendly, I also wanted to implement a function which would remove all rows from the plot at once, and reset the formatting of the data in these rows to the starting one. As by showing the row in the plot I assign some of the cells particular classes, I am using these classes to get hold of all changed rows. However, this approach works only partially, namely only on the rows which are currently displayed in the table. All these which are in other pages or filtered out are not changed.
I probably missed some important piece of information how the Datatables manages data which are not currently displayed. Are they accesibble to JS?
I have a problem to which I could no find solution. In my table I implemeted an option of showing the row data in the plot. This works fine by clicking the link in the opened details of the row. This changes the formating of the formatting of the data in the row to easily see that it has already been added to the plot. The same link allows also for removal of these paricular data from the plot.
As my table has 1000s of rows and removing data from the plot one by one is not very user friendly, I also wanted to implement a function which would remove all rows from the plot at once, and reset the formatting of the data in these rows to the starting one. As by showing the row in the plot I assign some of the cells particular classes, I am using these classes to get hold of all changed rows. However, this approach works only partially, namely only on the rows which are currently displayed in the table. All these which are in other pages or filtered out are not changed.
I probably missed some important piece of information how the Datatables manages data which are not currently displayed. Are they accesibble to JS?
This discussion has been closed.