Software Development

How to adjust table headers in Angular-Datatables



This highlights how to programmatically adjust table headers after rendering angular-datatables. Note that sometimes before adjusting the headers so that they will aligned with the table body (<tbody>), a delay (via setTimeout()) is needed as the adjustment may be interrupted or prevented by any of the tables’ parent elements.

Software Environment

  • Any modern web browser
  • angular-datatables – v0.0.1 (

JavaScript Codes



Got comments or suggestions? We disabled the comments on this site to fight off spammers, but you can still contact us via our Facebook page!.

You Might Also Like