Kempo UI Icon Kempo UI

Kempo UI

Kempo UI Icon
Base Components
Utils

Table - Field Sort and Hide

Back to Table Component Documentation

This example shows how to use the <kc-tc-field-sort-hide> component to allow users to show or hide fields in the table, and sort fields.

<k-table id="fieldVisibilityExample">
<kc-tc-field-sort-hide slot="top"></kc-tc-field-sort-hide>
</k-table>
<script type="module" src="/src/components/controls/TcFieldSortHide.js"></script>
<script type="module">
document.getElementById('fieldVisibilityExample').setRecords(contacts);
</script>