Skip to content
Docs
Reference

<tl-seat-preferences>

What a party prefers beyond how many: a price per ticket, an area, an aisle seat, wheelchair spaces and how together.

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

What a party prefers beyond how many: a price per ticket, an area, an aisle seat, wheelchair spaces and how together. Folded, it lists only what differs from the default, each with a way to remove it. tl-best-available on the same page follows it, wherever each is placed.

Properties#

PropertyAttributeDescriptionTypeDefault
eventIdevent-idThe event, for its pricesstring | undefinedundefined
occurrenceId (required)occurrence-idThe occurrence the preferences are forstringundefined
openopenStart open rather than foldedbooleanfalse
unstyledunstyledRender into the light DOM with no stylesheet, for a page that styles the element itself: every node carries a tl-seat-preferences__* class. Without it the element is styled, and each node is a ::part() of the same name.booleanfalse

Events#

EventDescriptionType
tlPreferencesChangeThe preferences changed. maxPriceEach is fees included, in minor unitsCustomEvent<{ maxPriceEach: number | null; areas: string[]; aisle: boolean; accessible: number; together: "row" | "rows" | "any"; }>

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-best-available>