Pagination
Switch pagingType, pageLength and lengthMenu. Reassigning the dtOptions reference recreates the table with the chosen pagination control.
| ID | Name | Position | Office | Age | Start date | Salary | Status |
|---|
type = signal<PagingType>('full_numbers');
length = signal(10);
// computed → new reference recreates the table with new chrome
options = computed<Config>(() => ({
pagingType: this.type(),
pageLength: this.length(),
lengthMenu: [5, 10, 25, 50],
}));