lib/js/Page.js
function(viewClass) {
      var t = this,
          newIdNum = 1,
          components = t.get('components'),
          classParts = viewClass.split('.'),
          appName = classParts[0],
          appView = classParts[1];

      // Instantiate and add the component
      var component = new Component({
        id: Monitor.generateUniqueCollectionId(components, 'c'),
        viewClass: viewClass,
        viewOptions: UI.app[appName][appView].prototype.defaultOptions,
        css: {
          '.nm-cv': 'top:10px;'
        }
      });
      components.add(component);
      return component;
    }
function(viewClass) {
      var t = this,
          newIdNum = 1,
          components = t.get('components'),
          classParts = viewClass.split('.'),
          appName = classParts[0],
          appView = classParts[1];

      // Instantiate and add the component
      var component = new Component({
        id: Monitor.generateUniqueCollectionId(components, 'c'),
        viewClass: viewClass,
        viewOptions: UI.app[appName][appView].prototype.defaultOptions,
        css: {
          '.nm-cv': 'top:10px;'
        }
      });
      components.add(component);
      return component;
    }
function ( viewClass ) { var t = this , newIdNum = 1 , components = t . get ( 'components' ) , classParts = viewClass . split ( '.' ) , appName = classParts [ 0 ] , appView = classParts [ 1 ] ; // Instantiate and add the component var component = new Component ( { id : Monitor . generateUniqueCollectionId ( components , 'c' ) , viewClass : viewClass , viewOptions : UI . app [ appName ] [ appView ] . prototype . defaultOptions , css : { '.nm-cv' : 'top:10px;' } } ) ; components . add ( component ) ; return component ; }
Add a new component to the Page model by component class

This uses the default component attributes

@method addComponent
@param viewClass - Class name for the main view in the component
@return component - The newly instantiated component
Add a new component to the Page model by component class