Skip to content
Docs
Reference

<tl-price-picker>

The ticket type of a held seat: Adult, Child, Concession and the rest of its category's types, as a dropdown or a segmented control, for one seat or every seat held for the occurrence.

HTML tag<tl-price-picker>
Reactimport { TlPricePicker } from '@ticketlayer/elements-react'
CategoryPurchase
Runs inweb (browser DOM), native (planned React Native set)

The ticket type of a held seat: Adult, Child, Concession and the rest of its category's types, as a dropdown or a segmented control, for one seat or every seat held for the occurrence. A change keeps the seat.

Properties#

PropertyAttributeDescriptionTypeDefault
eventIdevent-idThe event, for its prices; without it the types the page has already readstring | undefinedundefined
layoutlayoutA dropdown per seat, or a segmented control with each price"dropdown" | "segmented"'dropdown'
occurrenceId (required)occurrence-idThe occurrence the seats belong tostringundefined
seatseatOne seat, by its index; unset for every seat held for the occurrencenumber | undefinedundefined
unstyledunstyledRender into the light DOM with no stylesheet, for a page that styles the element itself: every node carries a tl-price-picker__* class. Without it the element is styled, and each node is a ::part() of the same name.booleanfalse

Events#

EventDescriptionType
tlErrorThe change could not be madeCustomEvent<{ message: string; }>
tlPriceChangeA held seat moved to another ticket typeCustomEvent<{ seat: number; ticketTypeId: 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.

Used by: <tl-cart>, <tl-seat-card>