-
In pagy 6.X I had code that looked like this: <% anchor_extras = anchor ? "data-controller=\"anchor\" data-anchor-name-value=\"#{anchor}\" data-action=\"anchor#scroll\"" : "" -%>
<% link = pagy_link_proc(pagy, link_extra: "data-turbo-action=\"advance\"#{anchor_extras}") -%> In pagy 8.X it says How can we accomplish the same thing with 8.X? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 9 replies
This comment was marked as off-topic.
This comment was marked as off-topic.
-
@nickjj The old system was messy because it was allowing to add up strings after strings at all levels. It was also inefficient and ugly looking. The new system moved the control of the now However, it's mostly frontend logic, and looking at it now... it feels misplaced in the pagy instance. It should be a helper argument, passed down to the The defaults go in the instance automatically and for consistency would need to be merged with the eventual @benkoshy @nickjj So what about removing the |
Beta Was this translation helpful? Give feedback.
-
I put the changes for |
Beta Was this translation helpful? Give feedback.
I put the changes for
:anchor_string
and:fragment
in the branch 9 because they are breaking changes. You can try them.