webix jet and events

hi,

i need to implement code of my customs events and i do not know where…

for example, i have this

//views/start.js

define([], function () {

return {
    type: "clean",
    id: "index",
    height: altura,
    width: anchura,
    rows:
    [
        _startUI.elements.index
    ]
};

});

Where _startUI.elements.index has a view.

If i had to implement an event of that view, where and how i have to do it?

I am not able to do it.

can you give me a sample please?

Thanks and regards!

i got it! i used this:

//views/start.js

define([], function () {

loadConfig();


var ui = 
{
    view: "eventlayout",
    type: "clean",
    id: "index",

    height: altura,
    width: anchura,
    rows:
    [
        _startUI.elements.index
    ]
}

return {
    $ui: ui,
    $oninit:function(view, $scope){ loadApp();/*after creating*/}
};

});

thanks!