rc-trigger
- Version 5.3.4
- Published
- 143 kB
- 5 dependencies
- MIT license
Install
npm i rc-triggeryarn add rc-triggerpnpm add rc-triggerOverview
base abstract trigger component for react
Index
Variables
Functions
Interfaces
TriggerProps
- action
- afterPopupVisibleChange
- alignPoint
- autoDestroy
- blurDelay
- builtinPlacements
- children
- className
- defaultPopupVisible
- destroyPopupOnHide
- focusDelay
- forceRender
- getDocument
- getPopupClassNameFromAlign
- getPopupContainer
- getTriggerDOMNode
- hideAction
- mask
- maskAnimation
- maskClosable
- maskMotion
- maskTransitionName
- mobile
- mouseEnterDelay
- mouseLeaveDelay
- onPopupAlign
- onPopupClick
- onPopupVisibleChange
- popup
- popupAlign
- popupAnimation
- popupClassName
- popupMotion
- popupPlacement
- popupStyle
- popupTransitionName
- popupVisible
- prefixCls
- showAction
- stretch
- zIndex
Type Aliases
Variables
variable _default
const _default: React.ComponentClass<TriggerProps, any>;Functions
function generateTrigger
generateTrigger: (PortalComponent: any) => React.ComponentClass<TriggerProps>;Internal usage. Do not use in your code since this will be removed.
Interfaces
interface TriggerProps
interface TriggerProps {}property action
action?: ActionType | ActionType[];property afterPopupVisibleChange
afterPopupVisibleChange?: (visible: boolean) => void;property alignPoint
alignPoint?: boolean;property autoDestroy
autoDestroy?: boolean;property blurDelay
blurDelay?: number;property builtinPlacements
builtinPlacements?: BuildInPlacements;property children
children: React.ReactElement;property className
className?: string;property defaultPopupVisible
defaultPopupVisible?: boolean;property destroyPopupOnHide
destroyPopupOnHide?: boolean;property focusDelay
focusDelay?: number;property forceRender
forceRender?: boolean;property getDocument
getDocument?: (element?: HTMLElement) => HTMLDocument;property getPopupClassNameFromAlign
getPopupClassNameFromAlign?: (align: AlignType) => string;property getPopupContainer
getPopupContainer?: (node: HTMLElement) => HTMLElement;property getTriggerDOMNode
getTriggerDOMNode?: (node: React.ReactInstance) => HTMLElement;Get trigger DOM node. Used for some component is function component which can not access by
findDOMNode
property hideAction
hideAction?: ActionType[];property mask
mask?: boolean;property maskAnimation
maskAnimation?: string;Deprecated
Please us
maskMotioninstead.
property maskClosable
maskClosable?: boolean;property maskMotion
maskMotion?: CSSMotionProps;Set mask motion. You can ref
rc-motionfor more info.
property maskTransitionName
maskTransitionName?: TransitionNameType;Deprecated
Please us
maskMotioninstead.
property mobile
mobile?: MobileConfig;Bump fixed position at bottom in mobile. This is internal usage currently, do not use in your prod
property mouseEnterDelay
mouseEnterDelay?: number;property mouseLeaveDelay
mouseLeaveDelay?: number;property onPopupAlign
onPopupAlign?: (element: HTMLElement, align: AlignType) => void;property onPopupClick
onPopupClick?: React.MouseEventHandler<HTMLDivElement>;property onPopupVisibleChange
onPopupVisibleChange?: (visible: boolean) => void;property popup
popup: React.ReactNode | (() => React.ReactNode);property popupAlign
popupAlign?: AlignType;property popupAnimation
popupAnimation?: AnimationType;Deprecated
Please us
popupMotioninstead.
property popupClassName
popupClassName?: string;property popupMotion
popupMotion?: CSSMotionProps;Set popup motion. You can ref
rc-motionfor more info.
property popupPlacement
popupPlacement?: string;property popupStyle
popupStyle?: React.CSSProperties;property popupTransitionName
popupTransitionName?: TransitionNameType;Deprecated
Please us
popupMotioninstead.
property popupVisible
popupVisible?: boolean;property prefixCls
prefixCls?: string;property showAction
showAction?: ActionType[];property stretch
stretch?: string;property zIndex
zIndex?: number;Type Aliases
type BuildInPlacements
type BuildInPlacements = Record<string, AlignType>;Package Files (2)
Dependencies (5)
Dev Dependencies (18)
Peer Dependencies (2)
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/rc-trigger.
- Markdown[](https://www.jsdocs.io/package/rc-trigger)
- HTML<a href="https://www.jsdocs.io/package/rc-trigger"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 4123 ms. - Missing or incorrect documentation? Open an issue for this package.
