Skip to content

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

Closed
@BeyerJC

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>

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