Skip to content

[LiveComponent] Add an data-attribute to modify the value of a prop #195

Closed

Description

@BeyerJC

Hey everyone !

I think it would be nice if we had an additional data-attribute to set the value of a prop from elements like . In my specific case, i tried to create a pagination and want to update the prop "page".

Im thinking of something like the data-model attribute --> data-value for example.

The result could be something like this

<a class="page-link" data-action="live#update" data-model="page" data-value="{{ page }}">{{ page }}</a>

Activity

  1. added a commit that references this issue on Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions