Sha256: 6e30e0a2353d2a1982533f6823886d3211ec2052ea3825f9177f09cae8df588a

Contents?: true

Size: 896 Bytes

Versions: 5

Compression:

Stored size: 896 Bytes

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2011 Strobe Inc. and contributors.
//            ©2008-2011 Apple Inc. All rights reserved.
// License:   Licensed under MIT license (see license.js)
// ==========================================================================

/**
  SC.TemplatePane is a helper that will create a new pane based on
  a single root TemplateView.

  function main() {
    MyApp.mainPane = SC.TemplatePane.append({
      layerId: 'my-root-id',
      templateName: 'app'
    })
  }
*/
SC.TemplatePane = SC.Object.extend({});

SC.mixin(SC.TemplatePane, {
  append: function(attrs) {
    var pane = SC.MainPane.extend({
      childViews: ['contentView'],

      contentView: SC.TemplateView.design(attrs)
    });

    return pane.create().append();
  }
});

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sproutcore-1.6.0.beta.1 lib/frameworks/sproutcore/frameworks/core_foundation/panes/template.js
sproutcore-1.5.0-java lib/frameworks/sproutcore/frameworks/core_foundation/panes/template.js
sproutcore-1.5.0 lib/frameworks/sproutcore/frameworks/core_foundation/panes/template.js
sproutcore-1.5.0.rc.2 lib/frameworks/sproutcore/frameworks/core_foundation/panes/template.js
sproutcore-1.5.0.rc.1 lib/frameworks/sproutcore/frameworks/core_foundation/panes/template.js