This repository was archived by the owner on Feb 2, 2025. It is now read-only.
-
Couldn't load subscription status.
- Fork 496
This repository was archived by the owner on Feb 2, 2025. It is now read-only.
Responsive extension doesn't show ngTemplateRef column #1723
Copy link
Copy link
Closed
Labels
Description
Hi,
When I use responsible extension and in responsible style , it only shows data field or render function.
this.dtOptions = { pagingType: 'full_numbers', pageLength: 10, serverSide: true, responsive: true, autoWidth: false, language: this.dataTableLanguage, ajax: (dataTablesParameters: any, callback) => { let params = {...dataTablesParameters}; this.countryService.getPaged(params) .subscribe({ next(response) { callback({ recordsTotal: response.recordsTotal, recordsFiltered: response.recordsTotal, data: response.data }); }, error(msg) { callback({ recordsTotal: 0, recordsFiltered: 0, data: [] }); self.notifierService.notify('error', self.translateService.instant('translations.notifier.error.data-fetching-error')); } }); }, order: [ [ 0, 'asc' ] ], columns: [ { data: 'name', orderable: true, }, { data: 'latinName', orderable: true, }, { data: 'alphaCode2', orderable: true, }, /* {data: 'alphaCode3', orderable: true, width: '10%'}, {data: 'currencyCode', orderable: true, width: '10%'}, {data: 'phoneCode', orderable: true, width: '10%'}, {data: 'numberCode', orderable: true, width: '5%'}, {data: 'riskDegree', orderable: true, width: '5%'}, */ { data: 'isDeleted', orderable: true, render: function (data: any, type: any, full: any) { if (data) { return '<span class="badge bg-soft-danger text-danger">' + self.translateService.instant('translations.country.index.grid.cell.delete-no') + '</span>'; } else { return '<span class="badge bg-soft-success text-success">' + self.translateService.instant('translations.country.index.grid.cell.delete-yes') + '</span>'; } } }, { data: null, orderable: false, defaultContent: '', ngTemplateRef: { ref: this.dtActions, context: { captureEvents: self.onCaptureEvent.bind(self) } } } ] }; :My Environment
angular-datatables version: 13.2.5
Thank you in advance for your help

