Intellij does not recognize columns.adjust() as a valid method.?
Intellij does not recognize columns.adjust() as a valid method.?
![EricLiao](https://secure.gravatar.com/avatar/72bc3d15af6cd268689067b5dd3941c5/?default=https%3A%2F%2Fvanillicon.com%2F72bc3d15af6cd268689067b5dd3941c5_200.png&rating=g&size=120)
when i try to display the datatable which was hidden before, the table head and table body are misaligned, so i found this columns.adjust() api method. But when I using it like this:
$( '#spectrum_table' ).DataTable().columns.adjust().draw()
The IDEA does not recognize adjust() as a valid function. what should I do?
This discussion has been closed.
Answers
the js version and datatable version as below:
jQuery-3.2.1/jquery-3.2.1.min.js
DataTables-1.10.16/js/jquery.dataTables.min.js