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:
1 parent
1ec1554cb5
commit
204e411585
4 files changed
+23
-34
No files matched your search
Vendored
+4
-1
@@ -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;
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user