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

TextAlignment of FieldDescriptor doesn't work on boarding pass #629

Open
pawelkiszka opened this issue Dec 1, 2022 · 0 comments
Open

TextAlignment of FieldDescriptor doesn't work on boarding pass #629

pawelkiszka opened this issue Dec 1, 2022 · 0 comments

Comments

@pawelkiszka
Copy link

It seems that textAlignment property of FieldDescriptor type doesn't work (or I'm using it in wrong way). I'm trying to align two values to the left, but my changes are not visible on the boarding pass
The template (kept only important bits):

new Template(
  'boardingPass',
  {
    // omitted required fields like 'organizationName'
    boardingPass: {
      // omitted transitType, headerFields, primaryFields, secondaryFields
      auxiliaryFields: [
        {
          key: 'departureDate',
          label: 'DATE',
          value: '13MAR23',
        },
        {
          key: 'board',
          label: 'BOARD',
          value: '22:30'
        },
        {
          key: 'departureTime',
          label: 'DEPARTURE',
          value: '23:00',
          textAlignment: 'PKTextAlignmentLeft' //assuming this should move value to the left
        },
        {
          key: 'arrivalTime',
          label: 'ARRIVAL',
          value: '01:30',
          textAlignment: 'PKTextAlignmentLeft'
        }
      ]
    }
  }
  );

Actual output:
image

Expected output: I would like the '23:00' value under 'DEPARTURE' to be aligned to the left, but it's kept to the right.
Any help would be appreciated.

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