eurostar-ticket
v1.0.5
Published
This components displays journey details for direct and indirect routes.
Readme
There are several types of tickets on Eurostar.com, each of which is suited for specific contexts. The component takes several options to configure which variant to use.
-"isOutbound": true->defines the template for a one-leg journey, if set to false the inbound journey template will be used-"trainClass": "standard","trainClass": "standard-premier","trainClass": "business-premier"->defines the template for the different Eurostar classes of accomodation-"cutOutGrey": true->uses a grey colour for the cut-out instead of the default white-"options": true->trigger the templates for the options tickets (travelled, cancelled or icons tickets)-"types": "cancelled", "travelled": false, "cancelled": "Train cancelled"->uses the ticket cancelled template-"types": "travelled", "travelled": "Travelled"->uses the ticket travelled template-"icons": true, "singleIcon": true->uses the template for 1 icon, otherwise, if"icons": trueonly is set, the template for two icons will be used by default
The tickets styles used in Eurostar.com are listed below.
