interface DropdownActionsCellProps {
    id: string;
    isMenuOpen: boolean;
    menuItems: Omit<MenuItemProps, "onNavigate">[];
    onMenuOpenUpdate: ((isMenuOpen) => void);
    onNavigate: ((to) => void);
    placement?: "left" | "right" | "top" | "bottom" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | "bottom-end" | "bottom-start";
    verticalPadding?: "12" | "24";
}

Hierarchy (view full)

Properties

id: string

Identifier for this cell (used for anchoring)

isMenuOpen: boolean

When true, show the menu

menuItems: Omit<MenuItemProps, "onNavigate">[]

List of items to show in the dropdown menu

onMenuOpenUpdate: ((isMenuOpen) => void)

Callback when the menu should change open state

Type declaration

    • (isMenuOpen): void
    • Callback when the menu should change open state

      Parameters

      • isMenuOpen: boolean

      Returns void

onNavigate: ((to) => void)

Navigation function

Type declaration

    • (to): void
    • Navigation function

      Parameters

      • to: string

      Returns void

placement?: "left" | "right" | "top" | "bottom" | "left-end" | "left-start" | "right-end" | "right-start" | "top-end" | "top-start" | "bottom-end" | "bottom-start"

Override the placement of the dropdown

verticalPadding?: "12" | "24"

Padding size for the cell

Generated using TypeDoc