Skip to content
On this page

Lastminute widget

Data attributes

account_token

Type: String

Description: Account token in [account]-[env] format

Required: true

group

Type: String

Description: Account group

Required: false

locale

Type: String

Description: Locale setup

Default: nl

booking_url

Type: String

Description: URL used to redirect to booking page

Required: true

location

Type: String

Description: Location API token to filter accommodations

Required: false

show_sorting

Type: Boolean

Description: Show sorting dropdown

Required: false

default: true

show_view_toggle

Type: Boolean

Description: Show result view type toggle

Required: false

default: true

default_view

Type: String

Description: Default result view type

Required: false

default: grid

Values: grid|list

matrix_min_nights

Type: Number

Description: Minimum nights to show in matrix

Required: false

Default: 0

matrix_min_columns

Type: Number

Description: Matrix minimum columns to display

Default: 0

matrix_max_columns

Type: Number

Description: Matrix maximum columns to display

Default: 0

translations

Type: Array

Description: Array with locale as key with nested array translations (key:value)

Default: []

use_special_period_filter

Type: Boolean

Description: Show special period filter

default: false

sorting

Type: String

Description: sorting type in results

Default: default (no sorting)

Allowed Values:

Value
default
price.asc
price.desc

infinite_scroll

Type: Boolean

Description: Use infinite scroll instead of a button to load more results

Default: true

booking_trigger

Type: String

Description: Event name to trigger booking event

Example:

html
data-booking_trigger="bookEventSearchBook"
javascript
document.addEventListener('bookEventSearchBook', function(evt) {
    console.warn('TRIGGER: BookEvent(bookEventSearchBook)', evt.detail);
});

list_item_layout_config

Type: Array

Description: Properties to display in result list item

Default: []

Values:

Value
title
sub_title
description
extra_description
house_type
location
location_country
location_region
location_province
location_city
location_map_image
rating

use_image_slider

Type: Boolean

Description: Use image slider in result item

Default: false

use_image_slider_dots

Type: Boolean

Description: Use image slider dots for pagination

Default: false

use_location_characteristics_switcher

Type: Boolean

Description: Use location and characteristics as checkbox switcher element (only shown when location filter is provided)

Default: false

show_alternative_periods

Type: Boolean

Description: Use alternative periods (tommy only)

Required: false

alternative_periods_config

Type: Array<number>

Description: Alternative periods config

Default: [0,1,3,7]

alternative_periods_default_value

Type: number

Description: Alternative periods default value

Default: 0

filters

Type: Array

Description: Filter sequence

Default: []

Values:

ValueDescription
datedatepicker
travelgrouptravelgroup filter
househouse type filter
staystay type filter
locationlocation filter
object_characteristicobject characteristics filter
searchautocomplete
buttonshow button

filter_values

Type: Object

Description: Default filtering values

Default: `{}

Values:

ValueDescription
countryCountry search terms
regionRegion search terms
provinceProvince search terms
locationLocation search terms
houseHouse types
stayStay types
tag_characteristicTag characteristics search terms

filter_allowed_values

Type: Object

Description: Allow specific filtering values (code values)

Default: `{}

Values:

ValueDescription
staystay type codes array
househouse type codes array

search_term_types

Type: Array

Description: Allowed search term types for autocomplete

Default: []

Values:

ValueDescription
countryCountry search terms
regionRegion search terms
provinceProvince search terms
cityCity search terms
locationLocation search terms
accommodationAccommodation search terms
location_characteristicLocation characteristics search terms
accommodation_characteristicAccommodation characteristics search terms
object_characteristicObject characteristics search terms
tag_characteristicTag characteristics search terms

search_term_default_types

Type: Array

Description: Default search term types for autocomplete

Default: []

Values:

ValueDescription
countryCountry search terms
regionRegion search terms
provinceProvince search terms
locationLocation search terms

date_range_start

Type: String

Description: Widget minimum date

Required: false

date_range_end

Type: String

Description: Widget maximum date

Required: false

durations

Type: Array

Description: Default durations to show

Default: [2, 3, 4, 5, 7, 10]

show_deposit_cost

Type: Boolean

Description: Show deposit costs in price calculation

Default: false