Skip to content
Docs
Reference

<tl-event-list>

What the channel is selling, as a grid of event cards, optionally narrowed to one category.

HTML tag<tl-event-list>
Reactimport { TlEventList } from '@ticketlayer/elements-react'
CategoryDiscovery
Runs inweb (browser DOM), native (planned React Native set)

What the channel is selling, as a grid of event cards, optionally narrowed to one category.

tl-event-list - what the channel is selling, as a grid of tl-event-card.

Each card shows the listing's fee-inclusive price range and its state for this buyer, with a countdown when the sale opens later; see tl-event-card.

<tl-event-list limit="12" columns="3"></tl-event-list>

Properties#

PropertyAttributeDescriptionTypeDefault
categorycategoryCategory filterstring | undefinedundefined
columnscolumnsColumns for grid layout (1, 2, 3, or 4)number3
limitlimitMaximum number of events to displaynumber12
unstyledunstyledRender into the light DOM with no stylesheet, for a page that styles the element itself: every node carries a tl-event-list__* class. Without it the element is styled, and each node is a ::part() of the same name.booleanfalse

Events#

EventDescriptionType
tlErrorEmitted when the listing could not be readCustomEvent<{ message: string; }>
tlEventClickEmitted when an event card is clickedCustomEvent<{ eventId: 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.

Renders: <tl-event-card>