Event System
Action
Remove from Cart

Basket/Remove

Triggered when a user removes

roomstay.events.on('Basket/Remove', (event: StepCheckoutViewEvent) => {
  console.log(
    `User removed room ${event.basketRow.getRoom().name} from their basket`
  )
})

basketRow

The newly added basket row

Type: BasketRow

currentBasket

Current basket as the user would see it. Including the new item.

Type: BasketRow[]