Backbone.JS Events:-
Events are capable of binding objects and trigger custom events i.e. you can bind the custom events by using the desired name of our choice.
The following table lists down all the methods which you can use to manipulate the BackboneJS-Events −
S.No. |
Methods & Description |
---|---|
1 |
onIt binds an event to an object and executes the callback whenever an event is fired. |
2 |
offIt removes callback functions or all events from an object. |
3 |
triggerIt invokes the callback functions for the given events. |
4 |
onceIt extends the backbone.Model class while creating your own backbone Model. |
5 |
listenToIt informs one object to listen to an event on another object. |
6 |
stopListeningIt can be used to stop listening to events on the other objects. |
7 |
listenToOnceIt causes the listenTo occur only once before the callback function is being removed. |