Skip to content

Class: ClickOutside<TFunc>

utilities/dom.ClickOutside

Type parameters

NameType
TFuncextends (event: MouseEvent) => void

Constructors

constructor

new ClickOutside<TFunc>(element, callback): ClickOutside<TFunc>

Type parameters

NameType
TFuncextends (event: MouseEvent) => void

Parameters

NameType
elementHTMLElement
callbackTFunc

Returns

ClickOutside<TFunc>

Defined in

src/utilities/dom.ts:351

Methods

destroy

destroy(): void

Returns

void

Defined in

src/utilities/dom.ts:359


handleClick

handleClick(event): void

Parameters

NameType
eventMouseEvent

Returns

void

Defined in

src/utilities/dom.ts:366