Function: emit()
emit<
T>(target,type,detail?):boolean
Defined in: src/ui/base/index.ts:26
Dispatch a custom event that crosses shadow DOM boundaries, so the implementer can listen anywhere above.
Type Parameters
T
T
Parameters
target
EventTarget
type
string
detail?
T
Returns
boolean
Example
emit(this, "pc-select", { value: "duplicate" });