Advertisement
Guest User

Untitled

a guest
Apr 18th, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. App.module('Entities', function(Entities, App, Backbone, Marionette, $, _){
  2.     'use strict';
  3.  
  4.     this.TableColumnModel = Colido.Model.extend({
  5.         api: '/core/tables',
  6.  
  7.         idAttribute: 'id',
  8.  
  9.         defaults: {
  10.             id: -1,
  11.             name: '',
  12.             defaultOrder: true,
  13.             defaultVisibility: true,
  14.         },
  15.  
  16.     });
  17.  
  18.     this.TableColumnCollection = Colido.Collection.extend({
  19.         api: '/core/tables',
  20.         name: 'base:collection-table',
  21.         model: this.TableColumnModel,
  22.     });
  23.     this.tableColumnCollection = new this.TableColumnCollection();
  24.     this.tableColumnCollection.fetch();
  25. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement