Can I trigger a call to a service or filter that retrieves a promise from the renderWith() function of a column? When I attempt this, the result always appears as "[object Object]".
vm.dtInstance = {};
vm.dtOptions = DTOptionsBuilder.fromFnPromise(MyService.getData())
.withPaginationType('full_numbers')
.withOption('rowCallback', casesDtRowCallback)
.withBootstrap()
.withOption('createdRow', createdRow)
.withOption('scrollX', true)
.withOption('scrollY', false);
vm.dtColumns = [
DTColumnBuilder.newColumn(null)
.withTitle('ID')
.renderWith(idHtml),
DTColumnBuilder.newColumn(null)
.withTitle('Status')
.renderWith(statusHtml),
];
function caseStatusHtml(data, type, full, meta) {
return $filter('myCustomFilter')(data.theStatus).then(function(response) {
// myCustomFilter returns a string
return response;
})
}