1.

Explain About Event Trigger?

Answer»

Event Trigger : There are some cases when you can't use delegation. Some JAVASCRIPT events doesn't SUPPORT delegation, IOS supports it for some elements. To find out which events allows delegation you can search for a bubble property of any event here. In these cases you can use trigger() METHOD.

The same functionality from example above can be created with click.trigger.

app.html

 app.js

export class App
{
myFunction()
{
console.log('The FUNCTION is triggered...');
}
}

Event Trigger : There are some cases when you can't use delegation. Some JavaScript events doesn't support delegation, IOS supports it for some elements. To find out which events allows delegation you can search for a bubble property of any event here. In these cases you can use trigger() method.

The same functionality from example above can be created with click.trigger.

app.html

 app.js

export class App
{
myFunction()
{
console.log('The function is triggered...');
}
}



Discussion

No Comment Found