FlightSearchResults
Displays search results as a series of flight cards that display the relevant flight information on them (times, flight duration, luggage details, price, etc). Also includes an alernative flights bar and sorting bar that allows user to sort flight cards by cheapest or fastest.
FlightSearchResults
Screenshots
Usage
Add the following script tag to your web page to load the microfrontend. Note: This is required only once per webpage, even when you embed multiple instances of the microfrontend.
<script src="https://nonprod.cloud.tui.com/osp/fo/flight-search-results/master/main.js" defer></script>
Add the following HTML code anywhere in your webpage at the position where you want the microfrontend to show. You can create multiple instances of the microfrontend.
<tfm-search-results-ui></tfm-search-results-ui>
Examples
Central Region Example
<tfm-search-results-ui
locale="de-DE"
scope="*"
currency="EUR"
tenant="cr"
theme="tui-light"
market="de"
eurorate="1"
initial-sort="price-asc"
environment="production">
</tfm-search-results-ui>Western Region Segment View Example
<tfm-search-results-ui
locale="nl-BE"
scope="*"
currency="EUR"
tenant="wr"
theme="tui-light"
market="be"
eurorate="1"
initial-sort="price-asc"
environment="production"
segmentview="true">
</tfm-search-results-ui>Moroccan Example
<tfm-search-results-ui
locale="en-GB"
scope="*"
currency="MAD"
tenant="wr"
theme="tui-light"
market="MA"
eurorate="11"
initial-sort="price-asc"
environment="production">
</tfm-search-results-ui>
Attributes
This microfrontend accepts the following attributes:
Name | Description | Values | Default | Required |
---|---|---|---|---|
currency | currency to display prices (ISO) | EUR , MAD , GBP , ANG , CHF | no | |
locale | language for localization (e.g. de-DE, en-GB...) | de-DE , en-GB , nl-NL , nl-BE , fr-FR , fr-BE , de-CH | no | |
tenant | tenant (tui by default) | ltur , cr , wr , tuiat | no | |
initial-sort | Sort option to apply on init (price-asc by default) | price-asc , departure-asc , duration-asc | no | |
market | market (e.g. be, nl, ma, de, fr) | be , nl , ma , de , fr | no | |
theme | css theme (tui by default) | ltur , tui | no | |
scope | scope of the component to use it multiple time | no | ||
pagination | How many flights show on one page (10 by default) | no | ||
segmentview | displays version of flight-search-results with 2 oneway results (separate result list for inbound and outbound) | no | ||
disabledflights | Combihash codes of the flights which needs to be disabled separated by a pipe symbol (|) | no | ||
environment | backend environment to be used | no |