Skip to content

add #ref method to Element class #111

Closed
@catmando

Description

@catmando

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions