Sha256: 70f2e6e669da66a8f7923613d18a24dc5041ac43efece9d10b04f68ff7d2d1c7

Contents?: true

Size: 1.21 KB

Versions: 9

Compression:

Stored size: 1.21 KB

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2009 Sprout Systems, Inc. and contributors.
//            portions copyright @2009 Apple, Inc.
// License:   Licened under MIT license (see license.js)
// ==========================================================================

sc_require('panes/panel');

/**
  Displays a modal sheet pane animated drop down from top.

  The default way to use the sheet pane is to simply add it to your page like this:
  
  {{{
    SC.SheetPane.create({
      layout: { width: 400, height: 200, centerX: 0 },
      contentView: SC.View.extend({
      })
    }).append();
  }}}
  
  This will cause your sheet panel to display.  The default layout for a Sheet 
  is to cover the entire document window with a semi-opaque background, and to 
  resize with the window.
  
  @extends SC.PanelPane
  @since SproutCore 1.0
*/
SC.SheetPane = SC.PanelPane.extend({
  
  classNames: 'sc-sheet',

  init: function() {
    sc_super() ;

/** TODO: Implement Animation   
    this.visibleAnimation = {
      visible: 'top: 0px',
      hidden: 'top: -500px',
      duration: 300
    } ;
*/
  }    

});

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
sproutit-sproutcore-1.0.0.20090720093355 frameworks/sproutcore/frameworks/desktop/panes/sheet.js
sproutit-sproutcore-1.0.0.20090720202429 frameworks/sproutcore/frameworks/desktop/panes/sheet.js
sproutit-sproutcore-1.0.0.20090721125122 frameworks/sproutcore/frameworks/desktop/panes/sheet.js
sproutit-sproutcore-1.0.126 frameworks/sproutcore/frameworks/desktop/panes/sheet.js
sproutit-sproutcore-1.0.20090721145251 frameworks/sproutcore/frameworks/desktop/panes/sheet.js
sproutit-sproutcore-1.0.20090721145280 frameworks/sproutcore/frameworks/desktop/panes/sheet.js
sproutit-sproutcore-1.0.20090721145281 frameworks/sproutcore/frameworks/desktop/panes/sheet.js
sproutit-sproutcore-1.0.20090721145282 frameworks/sproutcore/frameworks/desktop/panes/sheet.js
sproutit-sproutcore-1.0.203 frameworks/sproutcore/frameworks/desktop/panes/sheet.js