class TheModel extends Backbone.RelationalModel     relations:[         type: Backbone.HasMany         key: 'subModels'         relatedModel: SubModel         collectionType: SubModels         reverseRelation:             key: 'TheModel&#...
I have a simple application which defines two classes, a Person and a PersonGroup, wherein there is a many-to-many relationship in place.  A Person can have no group, or be assigned to all groups, and anything in between.  The example on backbonerela...
I need to destroy backbone relational model on client side, without performing any http requests. Under "destroy" word i mean removing model from all collections, removing all relations from other models to current one, and finally, removing...
I'm trying to create a backbone relational model with 2 "hasMany" relations of the same type, but I'm getting the error: "Cannot create relation=child on "(myReverseRelationName)" for model=child: already taken by relation...
Im working with a collection and models:  var StuffCollection = Backbone.Collection; var StuffModel = Backbone.RelationalModel;   in one place I make an instance of that collection with models:  var stuffCollection = new StuffCollection(); // do stuf...
I would like to be able to create nested models at the same time in backbone.  I know how to use backbone relational to create the parent model.  Then once it is saved, I can create child models through backbone relational.  However, I want to be abl...
I'm building a backbone app using backbone-relational models (but that shouldn't matter for this question).  Basically, I have an edit button that will display a hidden div. Inside the hidden div id a sub-view (called DetailsView) that render...
I have defined webpack ProvidePlugin to load Backbone-relational library as follows.  plugins: [     new webpack.ProvidePlugin({         $ : "jquery",         Backbone : "backbone",         _ : "underscore",         "Backb...
I am developing a project in backbone, but I believe I am mixing concepts.  Basically I want to represent a model root (FRAME) which can hold objects (OBJECT) and objects may be of various types (Text, Image, Button etc). Each sub object has differen...
I have a model relationship set-up with Backbone Relational, whereby an Item belongs to a Column. Adding items to columns works well, but how do I reference an existing view for an item, in-order to remove it from its old column? (Therefore, items ar...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.