Is there a trick to getting datatables to pick up your options?

Is there a trick to getting datatables to pick up your options?

minerjedminerjed Posts: 1Questions: 1Answers: 0

Using angular 15.2.8 and latest version of datatables.net.
Everything works fine (no errors) just can't program to pick-up my options.

html -

<

table id="subaddid" class="table is-striped mx-auto is-hoverable" datatable [dtOptions]="dtOptions" [dtTrigger]="dtTrigger">

component - dtOptions: DataTables.Settings = {}
this.dtOptions = {
"lengthMenu": [5, 10, 25, 50, 75, 100],
"pageLength": 5,
"deferRender": true
};

Answers

  • kthorngrenkthorngren Posts: 21,449Questions: 26Answers: 4,975

    You probably will need to ask the developers of the Angular Datatables library you are using. They have a incorporated the use of Datatables code with an Angular specific way of initializing which is not an area this forum covers. Possibly you are using this library?

    Kevin

Sign In or Register to comment.