view src/DML/MainVisBundle/Resources/assets/marionette/modules/RepresentationModule/RepresentationModule.21-Master.entity._default.js @ 1:f38015048f48 tip

Added GPL
author Daniel Wolff
date Sat, 13 Feb 2016 20:43:38 +0100
parents 493bcb69166c
children
line wrap: on
line source
"use strict";

App.module("RepresentationModule", function(RepresentationModule, App, Backbone, Marionette, $, _, Logger) {

    RepresentationModule.addInitializer(function(options){

        RepresentationModule.registerMaster({
            id: "entity._default",
            inherit: "entity._",


            // =================================================================
            // vis instance rendering


            // -----------------------------------------------------------------
            // debug mode

            _mapDerivedVisInstanceDataAttributesToDebugAPIQueryBoxes: function (viewMaster) {
                if (viewMaster.options.overlayPerspectiveId) {
                    return [["top",        "base",    "apiRequestURI", "apiResponse"],
                            ["bottom",     "overlay", "apiRequestURI", "apiResponse"]];
                } else {
                    return [["everywhere", "base",    "apiRequestURI", "apiResponse"]];
                }
            }
        });
    });
}, Logger);