@doku-dev/doku-fragment
Version:
A new Angular UI library that moving away from Bootstrap and built from scratch.
14 lines (13 loc) • 495 B
TypeScript
/**
* Get the type of the click action from an event.
*
* @param event Click event
* @param triggerElement The element which toggle the appeared element.
* @param appearedElement The element that will be shown when get triggered.
* @returns
*/
export declare function getClickType(event: Event, triggerElements: (HTMLElement | undefined | null)[], appearedElements: (HTMLElement | undefined | null)[]): {
clickInside: boolean;
clickOutside: boolean;
clickTrigger: boolean;
};