fix: make actions column sticky in members list (#17554)

* fix: make actions column sticky in members list

* clean up import

* change type definition

* remove old export

* include tanstack.d.ts

* fix declaration file

* move type def to packages/types/tanstack-table.d.ts

---------

Co-authored-by: Keith Williams <[email protected]>
This commit is contained in:
Eunjae LeeandKeith Williams authored and GitHub committed 2024-11-13 16:36:01 +00:00
1 parent 1ec1554cb5
commit 204e411585
4 files changed
+23 -34

No files matched your search

+4 -1
View File
@@ -2,6 +2,9 @@ import "@tanstack/react-table";
declare module "@tanstack/table-core" {
interface ColumnMeta<TData extends RowData, TValue> {
hasPermissions?: (data?: TData) => boolean; // We can conditionally render a column based on this callback -> User doesnt have admin for example.
sticky?: {
position: "left" | "right";
gap?: number;
};
}
}