UNPKG

@ui5/webcomponents-react

Version:

React Wrapper for UI5 Web Components and additional components

26 lines (25 loc) 1.07 kB
import type { Dispatch, SetStateAction, RefObject } from 'react'; import type { TableRowDomRef } from '../webComponents/index.js'; export type ReorderDirections = 'up' | 'down' | 'top' | 'bottom'; export type OnReorderParams = { index: number; direction: ReorderDirections; target: TableRowDomRef; filterKey: string | number; }; export interface IFilterBarDialogContext { onReorder?: (e: OnReorderParams) => void; isListView?: boolean; isFilterInDialog?: boolean; withValues?: boolean; enableReordering?: boolean; showBtnsOnHover?: boolean; handleFocusFallback?: () => void; currentReorderedItemOrderId?: string | number; setShowBtnsOnHover?: Dispatch<SetStateAction<boolean>>; setShowReorderBtnsIndex?: Dispatch<SetStateAction<number | undefined>>; setSelectedKeys?: Dispatch<SetStateAction<string[]>>; setRequiredKeys?: Dispatch<SetStateAction<Record<string, boolean>>>; prevIsListView?: RefObject<boolean>; } export declare const FilterBarDialogContext: import("react").Context<IFilterBarDialogContext>;