Skip to content

Idea: integrate with Invokers API (once it becomes available) #863

@art-solopov

Description

@art-solopov

Recently found out about the Invokers API (which, in itself, looks a bit like an attempt to make native web a bit more Stimulus-like) and thought that it would be awesome if you could specify actions in response to specific commands in the controller.

Something similar to how keydown works maybe?

<div data-controller="calculator">
    <!-- ... -->
    <output data-action="command.calculate->calculator#calculate command.reset->calculator#clear">
    </output>
</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions