Skip to content
Docs
Reference

Interface: Visibility

Interface: Visibility in @ticketlayer/live.

@ticketlayer/live


@ticketlayer/live / index / Visibility

Defined in: seating.ts:91

Whether the page is on screen, and a way to hear when that changes.

Methods#

hidden()#

hidden(): boolean;

Defined in: seating.ts:92

Returns#

boolean


onChange()#

onChange(callback: () => void): () => void;

Defined in: seating.ts:93

Parameters#

ParameterType
callback() => void

Returns#

() => void