Interface ScrollToOptions

Possible values for Wunderbaum.scrollTo options argument.

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

Hierarchy (view full)

Properties

noAnimation?: boolean

Do not animate (currently not implemented).

Default

false
noEvents?: boolean

Do not send events.

Default

false

Which node to scroll into the viewport.

ofsY?: number

Add N pixel offset at top.

topNode?: WunderbaumNode

Keep this node visible at the top in any case.