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

sorting icon in the header #91

Open
NicolaszHD opened this issue Mar 14, 2024 · 0 comments
Open

sorting icon in the header #91

NicolaszHD opened this issue Mar 14, 2024 · 0 comments

Comments

@NicolaszHD
Copy link

const table = {
  title: this.settings.title,
  headers: this.settings?.headers.map((header: any) => {
    const arrow = header.property === orders?.orderBy ? (orders?.orderType === 'ASC' ? ' ↑' : ' ↓') : '';
    return {
      ...header,
      label: header.label + arrow,
    };
  }),
  rows: this.getTableData(rows),
  padding: 1,
};


the sort icon in the header is not displayed I think that pdfkit-table does not support special characters, how can I fix it?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant