UIElement Docs Version 0.13.2

🔗 Function: callMethod()

callMethod<P, K, E>(methodName, reactive, args?): Effect<P, E>

Defined in: src/lib/effects.ts:446

Effect for calling a method on an element.

🔗 Type Parameters

🔗 P

P extends ComponentProps

🔗 K

K extends string | number | symbol

🔗 E

E extends HTMLElement = HTMLElement

🔗 Parameters

🔗 methodName

K

Name of the method to call

🔗 reactive

Reactive<boolean, P, E>

Reactive value bound to the method call

🔗 args?

unknown[]

Arguments to pass to the method

🔗 Returns

Effect<P, E>

Effect function that calls the method on the element

🔗 Since

0.13.3