Class: ClickOutside<TFunc>
utilities/dom.ClickOutside
Type parameters
Name | Type |
---|---|
TFunc | extends (event : MouseEvent ) => void |
Constructors
constructor
• new ClickOutside<TFunc
>(element
, callback
): ClickOutside
<TFunc
>
Type parameters
Name | Type |
---|---|
TFunc | extends (event : MouseEvent ) => void |
Parameters
Name | Type |
---|---|
element | HTMLElement |
callback | TFunc |
Returns
ClickOutside
<TFunc
>
Defined in
Methods
destroy
▸ destroy(): void
Returns
void
Defined in
handleClick
▸ handleClick(event
): void
Parameters
Name | Type |
---|---|
event | MouseEvent |
Returns
void