Backbone.JS Events

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

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 the backbone.Model class while creating your own backbone Model.

5

listenTo

It informs one object to listen to 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.