-
Notifications
You must be signed in to change notification settings - Fork 6
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>
- Reactivity
-
Templating
- Props vs. attributes (
prop:
) - Adding event listeners (
on:
) - Getting a reference to an element (
Ref
) - Using state in templates
- Animating elements (
destiny:mount
,destiny:unmount
) [to be written]
- Props vs. attributes (
-
Components
- Usage in templates
- Managing state [to be written]
- Styling components
- Passing props [to be written]
register()