Automatically resize table if parent container size was changed.
Automatically resize table if parent container size was changed.
AliBah
Posts: 11Questions: 0Answers: 0
Hello!
Could you please help to understand how can I configure datatable to make it resizable. Currently, if user resizes browser window, (as ex. decrease width), datatable holds the same width, so page refresh required to adjust new width.
Mb there is some easy way to make datatable size responsible to parent container size changes?
Thanks for any help!
This discussion has been closed.
Replies
Currently you need to call the methods to update the sizing as there is no
resize
event for DOM elements. Having said that, if you are interested in a future option for this have a read through this blog post - the technique shown there is something I'm likely to include in a future version of DataTables core.Allan
Thanks. Resolved.