l-lin / angular-datatables

DataTables with Angular
https://l-lin.github.io/angular-datatables/
MIT License
1.58k stars 486 forks source link

Add pipe option into header columns definition inside dtOptions #1466

Closed lucasluizss closed 3 years ago

lucasluizss commented 4 years ago

I'm submitting a...


[ ] Bug report  
[x] Feature request
[ ] Documentation issue or request
[ ] Question

Current behavior

Expected behavior

this.dtOptions = {
      pagingType: 'full_numbers',
      pageLength: 10,
      processing: true,
      columns: [
        { title: 'Title 1', data: 'number', pipe: 'translate' },
        { title: 'Title 2', data: 'locationId', pipe: 'translate' },
        { title: 'Title 3', data: 'date', pipe: 'translate' }
      ]
  };

Minimal reproduction of the problem with instructions

Environment


- node version: v14.7.0
- angular version:  9.1.12
- angular-cli version:  9.1.12
- jquery version: ^3.5.1
- datatables version: ^1.10.21
- angular-datatables version: ^9.0.2