Event System
Action
Room List

Search/RoomList

Triggered when roomstay loads available rooms after user completes a search for rooms on a selected hotel.

roomstay.events.on('Search/Guest', (event: RoomListSearchEvent) => {
  console.log(`Current search completed has the following details: ${event.SearchParameters} and has returned the following rooms: ${event.RoomListSearch[]`)
})

SearchParameters

Search parameters provided by the user during the booking process.

Type: SearchParameters

RoomListSearch

List of rooms loaded in roomstay as a result of a search by the user.

Type: RoomListSearch[]