IntersectionObserver
[<Interface>]
type IntersectionObserver =
abstract member root: U2<Document,Element> option
abstract member rootMargin: string
abstract member scrollMargin: string
abstract member thresholds: float array
static member Create (rootMargin: string, scrollMargin: string, thresholds: float array, disconnect: unit -> unit, observe: Element -> unit, takeRecords: unit -> IntersectionObserverEntry array, unobserve: Element -> unit, ?root: U2<Document,Element>) : IntersectionObserver
abstract member disconnect () : unit
abstract member observe (target: Element) : unit
abstract member takeRecords () : IntersectionObserverEntry array
abstract member unobserve (target: Element) : unit
| |
|---|
| Assembly | Xantham.Fable.Core.TS |
| Attributes | [<Interface>] |
Properties
abstract member root: U2<Document,Element> option
abstract member rootMargin: string
abstract member scrollMargin: string
abstract member thresholds: float array
Methods
static member Create (rootMargin: string, scrollMargin: string, thresholds: float array, disconnect: unit -> unit, observe: Element -> unit, takeRecords: unit -> IntersectionObserverEntry array, unobserve: Element -> unit, ?root: U2<Document,Element>) : IntersectionObserver
abstract member disconnect () : unit
abstract member observe (target: Element) : unit
abstract member takeRecords () : IntersectionObserverEntry array
abstract member unobserve (target: Element) : unit