You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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.
The text was updated successfully, but these errors were encountered:
It seems that
textAlignment
property ofFieldDescriptor
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 passThe template (kept only important bits):
Actual output:

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.
The text was updated successfully, but these errors were encountered: