useTableStickyColumns
@astryxdesign/core v0.7.1 · useTableStickyColumns
Usage
Hook that returns a TablePlugin which pins a contiguous run of columns to the start and/or end edge of the table. Pinned columns get cumulative offsets and a soft, scroll-aware shadow over the scrolling content. An empty config ({}) is a valid no-op that pins nothing.
ts
import { useTableStickyColumns } from '@astryx-vue/core/Table'Examples
useTableStickyColumns — Pinned Columns
Name | Monday | Tuesday | Wednesday | Thursday | Friday |
|---|---|---|---|---|---|
| Alice | Desk | Desk | Remote | Desk | Off |
| Bob | Remote | Desk | Desk | Remote | Desk |
| Carol | Off | Remote | Desk | Desk | Remote |
Name stays on the left and Friday stays on the right while the days in between scroll. The shadow over the scrolling content tells you which side still has hidden columns.