Interface ScrollToOptions

Possible values for Wunderbaum.scrollTo options argument.

interface ScrollToOptions {
    noAnimation?: boolean;
    node: WunderbaumNode;
    noEvents?: boolean;
    ofsY?: number;
    topNode?: WunderbaumNode;
}

Hierarchy (View Summary)

Properties

noAnimation?: boolean

Do not animate (currently not implemented).

false

Which node to scroll into the viewport.

noEvents?: boolean

Do not send events.

false
ofsY?: number

Add N pixel offset at top.

topNode?: WunderbaumNode

Keep this node visible at the top in any case.