Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable parametric directives, function association #27

Merged
merged 7 commits into from Jul 15, 2023

Conversation

18alantom
Copy link
Owner

@18alantom 18alantom commented Jul 11, 2023

These will enable setting directives with a parameter for example:

<button sb-listener="handlerKey:onclick">Click</button>

Here, "onclick" is the parameter and "handlerKey" is the key.

- enable parametric directives (w.i.p)
@18alantom 18alantom changed the title update registering of directives - enable parametric directives (w.i.p) enable parametric directives Jul 11, 2023
- update `syncDirectives` to account for `isParametric`
- this allows passing returned functions as values
- directives can receive these functions to associate them with el
@18alantom 18alantom changed the title enable parametric directives enable parametric directives, function association Jul 14, 2023
- fix computed function being called
- add docs for returning functions from computed
@18alantom 18alantom marked this pull request as ready for review July 15, 2023 06:22
@18alantom 18alantom merged commit 033f511 into main Jul 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant