Skip to content

Calling methods on elements (call:) (archived)

Okku edited this page May 31, 2021 · 1 revision

This feature has been removed from the library.

call:elementMethod takes an array of arguments to be passed to the method being called, or a single argument to be called with. This is likely not something you'll need very often, and if you find yourself needing it, you should stop to think if you need to use it instead of using another approach.

Note that like all namespaced attributes, input is not optional and must be slotted with ${} for performance reasons. To call something without arguments, pass in an empty array.

Example usage:

<form call:requestSubmit=${[]}></form>