Account
One circle for your header: a link to your account page, and the language, display currency and theme of the components.
- Box
data-pms-booking="menu"- Goes on
- Your header
- Drawn
- On your page, in a shadow root
- Own HTML instead
- Yes — recommended
The ready component
One line to paste. It wears the property’s branding from the PMS until your site’s stylesheet says otherwise.
- Place the script once, on every page that shows a component — see Install the script.
- Paste the component where it should appear.
<div data-pms-booking="menu"></div>Live preview on a sample hotel — invented rooms and prices, placeholder pictures. Open in a new tab
The live preview runs only when these docs are opened on a developer's own machine.
<div data-pms-booking="menu"></div>Settings
What the component shows and where it leads — attributes on its box.
| Attribute | Values | What it does |
|---|---|---|
data-hide | any of "language currency theme" | Rows left out of the menu, for a site that has its own switch for them. |
data-system | "off" | off: the theme row is a light / dark switch, without the "as the device" choice. |
The currency row shows only when the property offers more than one currency. Picking a language or a currency reloads the page.
Account icon
The same circle on its own, without the menu: a link to your account page.
<div data-pms-booking="account"></div>Live preview on a sample hotel — invented rooms and prices, placeholder pictures. Open in a new tab
The live preview runs only when these docs are opened on a developer's own machine.
<div data-pms-booking="account"></div>How it looks — colours, corners, fonts — is not an attribute. Your site’s stylesheet sets it with CSS variables: see Styling.
With your own HTML
Your own header keeps its own account link and its own switches. A signed-in guest’s name cannot be shown on your own page yet: who is signed in stays inside the guest area, so the account link is a plain link to your account page.
An account link and a currency selector
The account link is a plain link to the page that carries the guest area. The list of currencies comes from the property.
<nav class="site-tools"> <a href="/account">My bookings</a> <select id="site-currency" aria-label="Currency"></select></nav>function whenBookingReady(run) { if (window.pmsBooking) run(window.pmsBooking); else window.addEventListener('pms-booking-ready', () => run(window.pmsBooking), { once: true, });}
whenBookingReady(async (booking) => { const select = document.querySelector('#site-currency'); const { codes, current } = await booking.currencies(); select.replaceChildren( ...codes.map((code) => new Option(code, code, false, code === current)), ); select.hidden = codes.length < 2; // remembered; the page reloads with prices in that currency select.addEventListener('change', () => booking.setCurrency(select.value));});Every attribute, method and variable: Attributes · JavaScript · Styling.