Skip to content

Instantly share code, notes, and snippets.

@dorner
Last active September 15, 2020 18:49
Show Gist options
  • Save dorner/73010607f23bc3e70d68a8847c9fde8b to your computer and use it in GitHub Desktop.
Save dorner/73010607f23bc3e70d68a8847c9fde8b to your computer and use it in GitHub Desktop.
Table controller HTML
<div data-controller="table" data-table-per-page="20" data-table-page="1">
<div class="filters">
<input type="text" name="topicName" data-target="table.filter"/>
<input type="checkbox" name="myTopics" data-target="table.filter"/>
</div>
<table>
<thead>...</thead>
<tbody data-target="table.table">
<tr data-topicName="myTopic" data-myTopics="true">...</tr>
<tr data-topicName="yourTopic" data-myTopics="false">...</tr>
</tbody>
</table>
<div class="ui pagination menu" data-target="table.pagination"></div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment