Embed customization

Beschikbaar opBeschikbaarheidBoeking

Widget embed code customization

You can customize widgets from the admin dashboard or directly from the embed. This is useful for displaying the same data in multiple formats, such as a website available in three languages. To simplify customization, parameters like language can be specified in the embed code, reducing the number of widgets needed.

Available parameters

All widgets

ParameterDescriptionValues
startInitially selected enquiry startstring<Date>
endInitially selected enquiry endstring<Date>
guestsInitially selected number of guestsPositive integer
currencyCurrency used to display pricesSupported currency
fontFont used to display the widgetFont name from Google Fonts
localeLanguage used to display the widgetSupported language
stay_expandedAlways show the booking formboolean
color_availableColor for available daysstring<[0-F]{3,4,6,8}>
color_bookedColor for booked daysstring<[0-F]{3,4,6,8}>
color_closedColor for closed daysstring<[0-F]{3,4,6,8}>
color_errorError colorstring<[0-F]{3,4,6,8}>
color_infoInformation colorstring<[0-F]{3,4,6,8}>
color_primaryPrimary colorstring<[0-F]{3,4,6,8}>
color_surfaceSurface colorstring<[0-F]{3,4,6,8}>
color_tentativeColor for tentative daysstring<[0-F]{3,4,6,8}>
color_textText colorstring<[0-F]{3,4,6,8}>
color_unavailableColor for unavailable daysstring<[0-F]{3,4,6,8}>
color_warningWarning colorstring<[0-F]{3,4,6,8}>

Calendar widgets

ParameterDescriptionValues
display_legendDisplay a legend explaining the colorsboolean
display_product_imagesDisplay unit images above widgetboolean
display_product_nameDisplay unit name above widgetboolean
display_week_numbersDisplay week numbers in the calendarboolean
first_week_contains_dateDate that must be included in the first week of a year`1
interval_wrap_styleStyle of the interval wrap`"square"
number_of_monthsFix number of months to show next to each otherPositive integer
rate_locationWhere prices are displayed`"inline"
rate_visibilityFor which dates prices are displayed`"always"
show_totalsShow total price when selecting datesboolean
show_yearlyShow yearly calendar instead of monthly calendar when possibleboolean
sizeWidget size`"compact"
themeWidget theme`"modern"
week_starts_onDay at which a week starts`0

Timeline widgets

ParameterDescriptionValues
display_legendDisplay a legend explaining the colorsboolean
display_product_coversDisplay unit images next to their nameboolean
display_product_detailsDisplay unit details when selectedboolean
display_weekdaysDisplay weekdays in the timelineboolean
limit_heightLimit height of the widget to show only a few units at a timeboolean
rate_locationWhere prices are displayed`"inline"
rate_visibilityFor which dates prices are displayed`"always"
show_totalsShow total price when selecting datesboolean
sizeWidget size`"responsive"
themeWidget theme`"modern"

Inventory widgets

ParameterDescriptionValues
autoselect_random_unitSelect a random unit within a groupboolean
display_legendDisplay a legend explaining the colorsboolean
display_product_detailsDisplay unit details when selectedboolean
display_week_numbersDisplay week numbers in the calendarboolean
first_week_contains_dateDate that must be included in the first week of a year`1
grouping_attribute_idAttribute to group units byUUID
interval_wrap_styleStyle of the interval wrap`"square"
number_of_monthsFix number of months to show next to each otherPositive integer
rate_locationWhere prices are displayed`"inline"
rate_visibilityFor which dates prices are displayed`"always"
round_search_result_pricesRound prices in search resultsboolean
search_result_layoutLayout of the search results`"list"
show_ratesShow rates for each unitboolean
show_unavailable_productsShow unavailable productsboolean
show_yearlyShow yearly calendar instead of monthly calendar when possibleboolean
sizeWidget size`"compact"
themeWidget theme`"modern"
week_starts_onDay at which a week starts`0

Search widgets

ParameterDescriptionValues
autoselect_random_unitSelect a random unit within a groupboolean
display_product_detailsDisplay unit details when selectedboolean
filtersAttributes to filter byarray<string>
grouping_attribute_idAttribute to group units bystring<UUID>
rate_locationWhere prices are displayed`"inline"
rate_visibilityFor which dates prices are displayed`"always"
round_search_result_pricesRound prices in search resultsboolean
search_result_layoutLayout of the search results`"list"
show_unavailable_productsShow unavailable productsboolean
sizeWidget size`"compact"

Modifying embed codes

To modify a widget, you'll have to change the embed code. For example, let's modify a widget to show week numbers. Then we can modify the embed code as follows:

Standard

Change display_week_numbers=false to display_week_numbers=true

Note that we use snake_case for parameter names here.

Change data-display-week-numbers="false" to data-display-week-numbers="true"

Note that we use kebab-case for parameter names here.

Popover & Side tab

Change displayWeekNumbers: false, to displayWeekNumbers: true,

Note that we use camelCase for parameter names here

Supported languages

The widgets can be shown in a variety of languages:

LanguageLocale
Basqueeu-ES
Belarusianbe-BY
Croatianhr-HR
Czechcs-CZ
Danishda-DK
Dutchnl-NL
Englishen-US
Frenchfr-FR
Germande-DE
Hebrewhe-IL
Hungarianhu-HU
Italianit-IT
Japaneseja-JP
Lithuanianlt-LT
Norwegianno-NO
Portuguesept-BR
Romanianro-RO
Russianru-RU
Slovaksk-SK
Spanishes-ES
Ukranianuk-UA

Supported currencies

The widgets can be shown in a variety of currencies. To show correct prices in all these currencies, we track exchange rates on a daily basis.

CurrencyCode
Argentine PesoARS
Australian DollarAUD
Brazilian RealBRL
Belarusian RubleBYN
Canadian DollarCAD
Swiss FrancCHF
Yuan RenminbiCNY
Colombian PesoCOP
Czech KorunaCZK
Danish KroneDKK
Egyptian PoundEGP
EuroEUR
Pound SterlingGBP
Hong Kong DollarHKD
ForintHUF
New Israeli SheqelILS
Indian RupeeINR
YenJPY
WonKRW
Mexican PesoMXN
Malaysian RinggitMYR
Nigerian NairaNGN
Norwegian KroneNOK
New Zealand DollarNZD
Philippine PesoPHP
ZlotyPLN
Romanian LeuRON
Russian RubleRUB
Swedish KronaSEK
Singapore DollarSGD
BahtTHB
Turkish LiraTRY
New Taiwan DollarTWD
HryvniaUAH
US DollarUSD
RandZAR

Laatst gewijzigd 13 februari 2025

Op deze pagina

Widget embed code customizationAvailable parametersAll widgetsCalendar widgetsTimeline widgetsInventory widgetsSearch widgetsModifying embed codesStandardPopupPopover & Side tabSupported languagesSupported currencies