lib/template/app/lib/view/SampleView.js
function(options) {
      var t = this;
      t.options = options;
      t.monitor = options.monitor;

      // Call this to set the initial height/width to something
      // other than the size of the inner view elements.
      options.component.setDefaultSize({
        width: 400,
        height: 300
      });

      // Set monitor defaults.  If your view is for a specific probe,
      // then set the probeClass and any default probe initialization
      // parameters.
      if (!t.monitor.get('probeClass')) {
        t.monitor.set({
          probeClass: '{{shortAppName}}SampleProbe'
        });
      }

      // Update the view on monitor change.  The monitor isn't in
      // a connected state, so this will be called when connected.
      if (t.monitor != null) {
        t.monitor.on('change', t.onchange, t);
      }
    }
function(options) {
      var t = this;
      t.options = options;
      t.monitor = options.monitor;

      // Call this to set the initial height/width to something
      // other than the size of the inner view elements.
      options.component.setDefaultSize({
        width: 400,
        height: 300
      });

      // Set monitor defaults.  If your view is for a specific probe,
      // then set the probeClass and any default probe initialization
      // parameters.
      if (!t.monitor.get('probeClass')) {
        t.monitor.set({
          probeClass: '{{shortAppName}}SampleProbe'
        });
      }

      // Update the view on monitor change.  The monitor isn't in
      // a connected state, so this will be called when connected.
      if (t.monitor != null) {
        t.monitor.on('change', t.onchange, t);
      }
    }
function ( options ) { var t = this ; t . options = options ; t . monitor = options . monitor ; // Call this to set the initial height/width to something // other than the size of the inner view elements. options . component . setDefaultSize ( { width : 400 , height : 300 } ) ; // Set monitor defaults.  If your view is for a specific probe, // then set the probeClass and any default probe initialization // parameters. if ( ! t . monitor . get ( 'probeClass' ) ) { t . monitor . set ( { probeClass : '{{shortAppName}}SampleProbe' } ) ; } // Update the view on monitor change.  The monitor isn't in // a connected state, so this will be called when connected. if ( t . monitor != null ) { t . monitor . on ( 'change' , t . onchange , t ) ; } }
Add your view to the categories listed in these tags Called by the Backbone.View constructor
Add your view to the categories listed in these tags Called by the Backbone . View constructor