Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- App.module('Entities', function(Entities, App, Backbone, Marionette, $, _){
- 'use strict';
- this.TableColumnModel = Colido.Model.extend({
- api: '/core/tables',
- idAttribute: 'id',
- defaults: {
- id: -1,
- name: '',
- defaultOrder: true,
- defaultVisibility: true,
- },
- });
- this.TableColumnCollection = Colido.Collection.extend({
- api: '/core/tables',
- name: 'base:collection-table',
- model: this.TableColumnModel,
- });
- this.tableColumnCollection = new this.TableColumnCollection();
- this.tableColumnCollection.fetch();
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement