petalframework / petal_components

Phoenix + Live View HEEX Components
https://petal.build/components
MIT License
768 stars 84 forks source link

Add `target` attribute for sending pagination events to LiveComponents #257

Closed RobinBoers closed 10 months ago

RobinBoers commented 10 months ago

In #241 I added an option to make the pagination component send events instead of using live_patch/live_redirect.

This PR adds an optional target option, that can be used to set the phx-target for those events, which makes it also work in LiveComponents :)

nhobes commented 10 months ago

Thanks Robin!