Text input commands: selection and cursor movement.
All functions support window-qualified paths ("window#widget").
Example
def update(model, %WidgetEvent{type: :click, id: "select-all"}) do
{model, Command.Text.select_all("main#email")}
end
Summary
Functions
Sends the move_cursor_to command to the widget.
Sends the move_cursor_to_end command to the widget.
Sends the move_cursor_to_front command to the widget.
Sends the select_all command to the widget.
Sends the select_range command to the widget.
Functions
@spec move_cursor_to(String.t(), integer()) :: Plushie.Command.t()
Sends the move_cursor_to command to the widget.
@spec move_cursor_to_end(String.t()) :: Plushie.Command.t()
Sends the move_cursor_to_end command to the widget.
@spec move_cursor_to_front(String.t()) :: Plushie.Command.t()
Sends the move_cursor_to_front command to the widget.
@spec select_all(String.t()) :: Plushie.Command.t()
Sends the select_all command to the widget.
@spec select_range(String.t(), integer(), integer()) :: Plushie.Command.t()
Sends the select_range command to the widget.