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>