Javatpoint Logo
Javatpoint Logo

Backbone.js View.extend()

The Backbone.js view extend method is used to extend the Backbone.js view class to create a custom view.

Syntax:

Parameter explanation:

properties: It specifies instance properties for the view class .

classProperties: It specifies classProperties attached to the view's constructor function.

Let's take an example.

See this example:

Test it Now

Output:

Save the above code in viewextend.html file and open this file in a new browser.

BackboneJS extend Model




Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA