-
Notifications
You must be signed in to change notification settings - Fork 718
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce "none" trigger types fixing #181.
- Loading branch information
1 parent
5c174b5
commit 2689df5
Showing
11 changed files
with
169 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
import { PopoverInterface } from './interface'; | ||
import type { Placement } from '@popperjs/core'; | ||
|
||
export declare type TriggerType = 'click' | 'hover' | 'none'; | ||
|
||
export declare type TriggerEventTypes = { | ||
showEvents: string[]; | ||
hideEvents: string[]; | ||
}; | ||
|
||
export declare type PopoverOptions = { | ||
placement?: Placement; | ||
offset?: number; | ||
triggerType?: string; | ||
triggerType?: TriggerType; | ||
onShow?: (tooltip: PopoverInterface) => void; | ||
onHide?: (tooltip: PopoverInterface) => void; | ||
onToggle?: (tooltip: PopoverInterface) => void; | ||
}; |
Oops, something went wrong.