I am working with DataTables version 2.1.8 and have encountered a challenge. After fetching data via an API and reloading the table, I want to utilize the table.columns.adjust() feature to ensure proper column adjustments. However, I’m unsure of the best way to implement this in the latest version.
Here’s what I’m trying to achieve:
Fetch data from an API and update the DataTable.
Automatically adjust the columns to fit the new data using table.columns.adjust().
Could you please guide me on the correct approach to achieve this in DataTables 2.1.8? Any examples or documentation links would be greatly appreciated.
Thank you in advance for your help!