Skip to content

feat: support author-provided prev/next controls#38

Open
DannyJoris wants to merge 1 commit into
Lullabot:mainfrom
DannyJoris:feat/custom-controls
Open

feat: support author-provided prev/next controls#38
DannyJoris wants to merge 1 commit into
Lullabot:mainfrom
DannyJoris:feat/custom-controls

Conversation

@DannyJoris

Copy link
Copy Markdown

This change allows a user to optionally provide their own HTML wrappers and Tabled recognizes them when present. You can provide the following and Tabled will pick these elements up, binding the click events to the buttons.

<div class="tabled">
  <div class="tabled__navigation">
    <button type="button" class="tabled__previous" aria-label="Previous column">Previous</button>
    <button type="button" class="tabled__next" aria-label="Next column">Next</button>
  </div>
  <table>
    ...
  </table>
</div>

Inspired by Splide: https://splidejs.com/guides/arrows/#custom-arrows

@Javi-er Javi-er self-requested a review June 5, 2026 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant