Scrollspy class

A scrollspy component, which captures the scroll position on an element and reflects the state on another element.

Inheritance

Constructors

Scrollspy(Element element, {String target, int offset: 10})
Construct a Scrollspy object and wire it to element.

Properties

$element ElementQuery
The dquery object of element. Equivalent to $(element).
final, inherited
element Element
The element which component wires to.
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
offset int
The offset used when calculating scroll position. For example, if 10, [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
refresh() → void
Refresh the cached y-position values of spied items.
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Static Methods

use() → void
Register to use Scrollspy component.
wire(Element element, [Scrollspy create()]) Scrollspy
Retrieve the wired Scrollspy object from an element. If there is no wired [...]