From 46b1d6e8eae23f070e92bf7b89b00e8ad8f8e575 Mon Sep 17 00:00:00 2001 From: shadow <81448108+ShadowMonster99@users.noreply.github.com> Date: Fri, 24 May 2024 17:17:12 -0300 Subject: [PATCH] Dropdown contextMenuPositionOptions prop definition (#104) --- src/components/Dropdown.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/Dropdown.tsx b/src/components/Dropdown.tsx index 867fa76..7df7bf2 100644 --- a/src/components/Dropdown.tsx +++ b/src/components/Dropdown.tsx @@ -19,6 +19,11 @@ export interface MultiDropdownOption { export type DropdownOption = SingleDropdownOption | MultiDropdownOption; +export interface DropdownMenuPositionOptions { + [_: string]: unknown + bMatchWidth?: boolean +} + export interface DropdownProps { rgOptions: DropdownOption[]; selectedOption: any; @@ -26,7 +31,7 @@ export interface DropdownProps { onMenuWillOpen?(showMenu: () => void): void; onMenuOpened?(): void; onChange?(data: SingleDropdownOption): void; - contextMenuPositionOptions?: any; + contextMenuPositionOptions?: DropdownMenuPositionOptions; menuLabel?: string; strDefaultLabel?: string; renderButtonValue?(element: ReactNode): ReactNode;