The angular-datatables
provides the helper DTOptionsBuilder
that lets you build the datatables options.
It also provides the helper DTColumnBuilder
that lets you build the column and column defs options.
See the API for the complete list of methods of the helpers.
Note:
-
When rendering a static table, you CANNOT use the
dt-column
directive. Indeed, the module will render the datatable after the promise is resolved. So for DataTables, it's like rendering a static table. If you need to provide some options to your column, your must provide thedt-column-defs
directive (which corresponds to the DataTables columnDefs).