mirror of
https://github.com/SteamDeckHomebrew/decky-frontend-lib.git
synced 2026-05-19 01:20:20 +02:00
Dropdown contextMenuPositionOptions prop definition (#104)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user