/
githubmirror
/
ionic-framework
Обзор
Документация
Войти
/
githubmirror
/
ionic-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
core/src/components/popover/popover-interface.ts
51 строка
1 KB
Liam DeBeasi
feat(modal, popover): add ability to temporarily disable focus trapping (#29379)
25 апр 2024, 16:57
Не верифицирован
25 апр 2024, 16:57
7c00351
Код
Авторство
О чём код?
import type { AnimationBuilder, ComponentProps, ComponentRef, FrameworkDelegate, Mode, OverlayInterface, } from '../../interface'; export interface PopoverInterface extends OverlayInterface { present: (event?: MouseEvent | TouchEvent | PointerEvent) => Promise<void>; } export interface PopoverOptions<T extends ComponentRef = ComponentRef> { component: T; componentProps?: ComponentProps<T>; showBackdrop?: boolean; backdropDismiss?: boolean; translucent?: boolean; cssClass?: string | string[]; event?: Event; delegate?: FrameworkDelegate; animated?: boolean; focusTrap?: boolean; mode?: Mode; keyboardClose?: boolean; id?: string; htmlAttributes?: { [key: string]: any }; enterAnimation?: AnimationBuilder; leaveAnimation?: AnimationBuilder; size?: PopoverSize; dismissOnSelect?: boolean; reference?: PositionReference; side?: PositionSide; alignment?: PositionAlign; arrow?: boolean; trigger?: string; triggerAction?: string; } export type PopoverSize = 'cover' | 'auto'; export type TriggerAction = 'click' | 'hover' | 'context-menu'; export type PositionReference = 'trigger' | 'event'; export type PositionSide = 'top' | 'right' | 'bottom' | 'left' | 'start' | 'end'; export type PositionAlign = 'start' | 'center' | 'end';