Methods
componentDidMount() → {void}
- Source:
Add scroll listener
Returns:
- Type
- void
componentDidUpdate(prevProps) → {void}
- Source:
update element's position when new tickets are fetched
Parameters:
| Name | Type | Description |
|---|---|---|
prevProps |
object |
Returns:
- Type
- void
componentWillUnmount() → {void}
- Source:
Remove scroll listener
Returns:
- Type
- void
handleScroll() → {void}
- Source:
Get more tickets on scroll
Returns:
- Type
- void
render() → {view}
- Source:
Render
Returns:
- Type
- view
renderTable() → {void}
- Source:
Render ticket table view
Returns:
- Type
- void
renderTiceket() → {void}
- Source:
Render tiket view as one row
Returns:
- Type
- void
selectTicket(ticket) → {void}
- Source:
Select tickets for more details
Parameters:
| Name | Type | Description |
|---|---|---|
ticket |
object |
Returns:
- Type
- void
Type Definitions
props
- Source:
Properties:
| Name | Type | Description |
|---|---|---|
scrollTo |
number | |
betsPending |
boolean | |
tickets |
Array | |
ticketDates |
Array | |
getTickets |
function | |
selectTicket |
function | |
changePage |
function | |
setScrollPosition |
function | |
ticketsUpdated |
boolean |
Type:
- object