how to click explicitly from source into enyo.Input?

How can i click to a enyo.Input or button, from my source code. rather than user manual click.

Comments

  • There are a couple ways to simulate a click but generally you don't need to go that far down the stack.

    Here are the first few that came to mind.
    * call the node's click() method
    * call the handler directly
    * bubble the event through Enyo's event system

    http://codepen.io/ryanjduffy/pen/grwLh

    If you're looking for the same behavior when 2 controls are tapped, you can either attach the same handler to them or, if you need some common behavior but each has some unique, refactor the common code into another method that's called from each handler.
Sign In or Register to comment.