Sha256: 64137d96f981c1d6f16f2d79eb8f9d0be4d4e5bc327b720e0810950af68a73ed

Contents?: true

Size: 1.06 KB

Versions: 5

Compression:

Stored size: 1.06 KB

Contents

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

SC.AceTheme.Popover.workspaceRenderDelegate = SC.RenderDelegate.create({
  name: 'workspace',
  render: function(dataSource, context) {
    context.setClass({
      'top-toolbar': dataSource.get('hasTopToolbar'),
      'bottom-toolbar': dataSource.get('hasBottomToolbar')
    });
    
    context = context.begin('div').addClass('popover-background');
    this.includeSlices(dataSource, context, SC.NINE_SLICE);
    context.push("<div class = 'sc-pointer'></div>");
    context = context.end();
  },

  update: function(dataSource, jquery) {
    jquery.setClass({
      'top-toolbar': dataSource.get('hasTopToolbar'),
      'bottom-toolbar': dataSource.get('hasBottomToolbar')
    });
  }
});

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
spade-0.0.1 sproutcore/themes/ace/resources/picker/popover/workspace.js
sproutcore-1.5.0.pre.5 lib/frameworks/sproutcore/themes/ace/resources/picker/popover/workspace.js
sproutcore-1.5.0.pre.4.1 lib/frameworks/sproutcore/themes/ace/resources/picker/popover/workspace.js
sproutcore-1.5.0.pre.4 lib/frameworks/sproutcore/themes/ace/resources/picker/popover/workspace.js
sproutcore-1.5.0.pre.3 lib/frameworks/sproutcore/themes/ace/resources/picker/popover/workspace.js