"Show / hide columns dynamically" doesn't work as advertised

"Show / hide columns dynamically" doesn't work as advertised

SlamfieldsSlamfields Posts: 6Questions: 2Answers: 0

I have tried to get this feature to work to no avail. I even tried to get a success by copying the example. I copied the example HTML and Javascript to the letter and added the appropriate tags. I also referenced the exact libraries that were specified. While the table comes up, the hot links that control column visibility do not appear and this functionality is not available. Has anyone else successfully duplicated the example table for "Show / hide columns dynamically"?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,464Questions: 1Answers: 10,466 Site admin
    Answer ✓

    If you are doing a copy / paste, you'd need to include the HTML for the buttons as well:

                    <div>
                        Toggle column: <a class="toggle-vis" data-column="0">Name</a> - <a class="toggle-vis" data-column="1">Position</a> - <a class="toggle-vis" data-column=
                        "2">Office</a> - <a class="toggle-vis" data-column="3">Age</a> - <a class="toggle-vis" data-column="4">Start date</a> - <a class="toggle-vis" data-column=
                        "5">Salary</a>
                    </div>
    

    Alternatively, use Buttons built in column visibility controls.

    Allan

  • SlamfieldsSlamfields Posts: 6Questions: 2Answers: 0

    Thanks.

This discussion has been closed.