Toggle Custom Button on Save State
Toggle Custom Button on Save State
ArielSAdamsNASA
Posts: 105Questions: 15Answers: 0
Link to test case: http://live.datatables.net/movoluni/1/edit
Description of problem: I have a custom button that toggles between Show active and Show inactive. The table also saves its state. When clicking Show active, it shows all the active columns but the text still says Show active instead of Show inactive. In other words, it says Show active for two button clicks instead of one.
Answers
I believe I fixed the issue using a function as the text: http://live.datatables.net/zihevuhu/1/edit