Search code examples
javascriptonloadwebosenyolg

WebOS onComplete event or analog


I want call onclick event after form loaded. I not found onCompletion Event or any analog

something like : kind: someUI, onComplete: "Init"


Solution

  • I'm not entirely sure from your description, but it sounds like you want to cause some action to occur when the app is loaded. You might try using ready() as described in the getting started guide.

    http://enyojs.com/docs/latest/developer-guide/getting-started/creating-and-building-an-app.html

    The other choice is to add something to your initial App rendered that executes your buttonTapped() method.

    rendered: function () {
        this.inherited(arguments);
        this.doSomething();
    }