Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Successfully merging a pull request may close this issue.

2 participants