Skip to main content

<tl-seat-map>

HTML tag<tl-seat-map>
Reactimport { TlSeatMap } from '@ticketlayer/elements-react'
CategoryPurchase
Runs inweb (browser DOM)

Properties

PropertyAttributeDescriptionTypeDefault
apiUrlapi-urlAPI URL for the seat map datastring'https://api.ticketlayer.com'
hboUrlhbo-urlBase URL for the hosted seat map (HBO URL)string'https://checkout.ticketlayer.com'
heightheightHeight of the seat mapstring'600px'
occurrenceId (required)occurrence-idOccurrence ID to show seat map forstringundefined
widthwidthWidth of the seat mapstring'100%'

Events

EventDescriptionType
tlCartChangeEmitted when cart seats changeCustomEvent<{ seatIds: string[]; }>
tlErrorEmitted when an error occursCustomEvent<{ error: string; }>
tlLoadEmitted when seat map is loadedCustomEvent<{ seatMapId: string; }>
tlReadyEmitted when seat map is readyCustomEvent<void>
tlSeatAddedEmitted when a seat is added to cartCustomEvent<{ seatId: string; ticketTypeId: string; }>
tlSeatRemovedEmitted when a seat is removed from cartCustomEvent<{ seatId: string; }>

Events are CustomEvents; the payload is on event.detail. In HTML, listen with element.addEventListener('tlXxx', handler); in React the wrapper exposes each one as an onTlXxx prop.