@omnia/fx
Version:
Provide Omnia Fx typings and tooling for clientside Omnia development.
21 lines (20 loc) • 530 B
TypeScript
export interface ClickOutOption {
/**
* trigger when clicked outside the current element
*/
onClickOut?: () => void;
/**
* provide logic to check clicked outside ot not
*/
closeConditional?: (e: HTMLElement) => boolean;
/**
* additional elements were passed to be included in check
*/
includeElements?: Array<HTMLElement>;
}
export declare function ClickOutDirective(option?: ClickOutOption): {
name: string;
args: {
closeConditional: (e: any) => boolean;
};
};