Skip to main content

<tl-my-orders>

HTML tag<tl-my-orders>
Reactimport { TlMyOrders } from '@ticketlayer/elements-react'
CategoryAccount
Runs inweb (browser DOM), native (planned React Native set)

tl-my-orders - the signed-in customer's orders (GET /sales/my-orders through the SDK): event, date, ticket count, total and status per row. Clicking a row expands it to show the order's tickets (tl-order-tickets). Shows tl-login inline when nobody is signed in.

<tl-my-orders></tl-my-orders>

Properties

PropertyAttributeDescriptionTypeDefault
columnscolumnsColumns for the expanded ticket grid.number2
emptyMessageempty-messageCopy for the empty state.string"When you buy tickets they'll show up here, ready to view and download."

Events

EventDescriptionType
tlErrorCustomEvent<{ message: string; }>
tlOrderSelectCustomEvent<{ orderId: 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-order-tickets>, <tl-login>