Skip to content

sorting icon in the header #91

@NicolaszHD

Description

@NicolaszHD
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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions