columns.visible & columns.className should accept functions

columns.visible & columns.className should accept functions

swrobelswrobel Posts: 10Questions: 2Answers: 0

I want to be able to change these dynamically based on data in the json payload. Currently this is not possible, as they expect a string/boolean.

Replies

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin

    Sorry - this is not something that DataTables currently does: see this FAQ.

    I hope to introduce it in the next major version.

    Allan

  • swrobelswrobel Posts: 10Questions: 2Answers: 0

    Thanks for the reply. I'm aware this isn't currently available - I just wanted to get the feature request in. I found a workaround for my current needs. DataTables is great!

  • allanallan Posts: 61,972Questions: 1Answers: 10,160 Site admin

    Ah - thanks! I've chalked up one more vote for it. Its something I frequently want to use myself as well!

    Allan

This discussion has been closed.