Scroll commands: absolute, relative, and snap positioning.
All functions support window-qualified paths ("window#widget").
Example
def update(model, %WidgetEvent{type: :click, id: "to-top"}) do
{model, Command.Scroll.snap_to("main#content", 0.0, 0.0)}
end
Summary
Functions
Sends the scroll_by command to the widget.
Sends the scroll_to command to the widget.
Sends the snap_to command to the widget.
Sends the snap_to_end command to the widget.
Functions
@spec scroll_by(String.t(), number(), number()) :: Plushie.Command.t()
Sends the scroll_by command to the widget.
@spec scroll_to(String.t(), number(), number()) :: Plushie.Command.t()
Sends the scroll_to command to the widget.
@spec snap_to(String.t(), number(), number()) :: Plushie.Command.t()
Sends the snap_to command to the widget.
@spec snap_to_end(String.t()) :: Plushie.Command.t()
Sends the snap_to_end command to the widget.