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

add #ref method to Element class #111

Closed
catmando opened this issue Jan 25, 2019 · 0 comments
Closed

add #ref method to Element class #111

catmando opened this issue Jan 25, 2019 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@catmando
Copy link
Contributor

catmando commented Jan 25, 2019

you should be able to say this:

    name = INPUT(defaultValue: @Participant.name, placeholder: 'your name')
    ....
    # and in some event handler
    name.ref 

what will happen is all components will have a ref that sets an internal variable in the hyperstack Element instance.

If you use old style ref, this will simply overwrite the default ref callback, and elements ref will not get set.

@catmando catmando added the enhancement New feature or request label Jan 26, 2019
@catmando catmando added this to the alpha1.4 milestone Jan 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant