Skip to content

Latest commit

 

History

History
72 lines (29 loc) · 1.27 KB

events.md

File metadata and controls

72 lines (29 loc) · 1.27 KB

Events

Events are capable of binding objects and trigger custom events i.e. you can bind the custom events by using desired name of our choice.

Following table lists down all the methods which you can use to manipulate the BackboneJS-Events:

S.N. Methods and Descriptiions
1 **on **- It binds an event to an object and executes the callback whenever an event is fired.
2 **off **- It removes callback functions or all events from an object
3 **trigger **- It invokes the callback functions for the given events.
4 **once **- It extends backbone.Model class while creating your own backbone Model.
5 **listenTo **- It informs one object to listen an event on another object.
6 **stoplistening **- It can be used to stop listening to events on the other objects
7 **listentoOnce - ** It causes the listenTo occur only once before the callback function is being removed.

Catalog of Built-in Events

BackboneJS allows use of global events wherever necessary in your application.It contains some of the built-in events with arguments as shown in the below table: