Skip to content
This repository was archived by the owner on Feb 2, 2025. It is now read-only.

Add pipe option into header columns definition inside dtOptions #1466

Closed
lucasluizss opened this issue Aug 10, 2020 · 0 comments · Fixed by #1494
Closed

Add pipe option into header columns definition inside dtOptions #1466

lucasluizss opened this issue Aug 10, 2020 · 0 comments · Fixed by #1494

Comments

@lucasluizss
Copy link

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants