Actions on Table Next/Prev buttons

Hey Team,

Is there a way to add custom links to the Table’s previous and next buttons?

Since the the Polaris web components are not fully compatible correctly with Hotwire/Turbo, is there a way to add onclick events to those buttons?

Using the onclick is the only way we can make the <s-link>, <s-button>, <s-clickable> to work with Hotwire / Turbo.

Thank you!

The nextpage and previouspage events fire when those buttons are interacted with. See the “events” section in the Table docs Table

Thanks!

Oh, I see. I wasn’t paying attention to that part of the docs.

Thank you so much!

1 Like