mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-16 21:50:35 +02:00
Add actions table column
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import type { ICellRendererParams } from '@ag-grid-community/core';
|
||||
import { RiMoreFill } from 'react-icons/ri';
|
||||
import { Button } from '/@/renderer/components/button';
|
||||
import { CellContainer } from '/@/renderer/components/virtual-table/cells/generic-cell';
|
||||
|
||||
export const ActionsCell = ({ context, api }: ICellRendererParams) => {
|
||||
return (
|
||||
<CellContainer position="center">
|
||||
<Button
|
||||
compact
|
||||
variant="subtle"
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
e.preventDefault();
|
||||
context.onCellContextMenu(undefined, api, e);
|
||||
}}
|
||||
>
|
||||
<RiMoreFill />
|
||||
</Button>
|
||||
</CellContainer>
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user