Provide callback for _fnAdjustColumnSizing

Provide callback for _fnAdjustColumnSizing

NMcCloudNMcCloud Posts: 15Questions: 7Answers: 0
edited March 2016 in Feature requests

Is it possible to add a callback for the _fnAdjustColumnSizing function. I am trying to make my site work both left-to-right, and right-to-left. To do this, I basically, among other things, transfer the padding from the right to the left side of the table by using a drawCallback. However, when the window gets resized, the data tables call _fnAdjustColumnSizing which restores the padding settings without any notification.

Can a callback, say columnResizeCallback be added to the API and then linked to _fnAdjustColumnSizing to support the above.

Thanks

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,686Questions: 1Answers: 10,100 Site admin
    Answer ✓

    column-sizing is the event that DataTables triggers when that method is called. I'm generally moving more towards events rather than callbacks with DataTables.

    Allan

  • NMcCloudNMcCloud Posts: 15Questions: 7Answers: 0

    So sorry. Thank.

  • allanallan Posts: 61,686Questions: 1Answers: 10,100 Site admin
    edited March 2016

    No worries. Easy when you know how - darn near impossible if you don't!

    Allan

    edit typo

This discussion has been closed.