![]() |
Backbone.js extend view is a method under the view class that is used to extend the backbone.js view class in order to create a custom view class. For implementation, first of all, we need to create a custom view class and override the render function if required, also we can specify our own declarative events. Syntax: Backbone.view.extend( properties , [classProperties] ) Parameter values:
Example 1: Basic example for implementing backbone.js extend the view. HTML
Output: ![]()
Example 2: In this example, we are using a simple boilerplate for the reference implementation. HTML
Output: ![]()
Reference: https://backbonejs.org/#View-extend |
Reffered: https://www.geeksforgeeks.org
JavaScript |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 13 |