A solution to add dynamic headers to datatables jQuery plugin. This public repository will help to post solutions and code-snippets we find useful, please feel free to fork and add your own commentaries and examples. Resume:
- dynamic-headers.html loads json from data/data.json The idea is that in the JSON we define the columns, adding a name additional attribute that defines the Title of the table header Any other render or transformation applied to the column should be defined in the Javascript code (see example)
datatables js and css is included for demo purposes. Please download latest version of datatables here: https://datatables.net/download
Allan from Datatables for creating such an awesome data visualization plugin. Using if for more than 3 years and counting! Diego for his help on building a simple, yet effective logic. SkyGate GmbH for giving me the time and support to do this and share it in an open repository