Sha256: f38fa889ef37001a4aee3683febe4bab587166f651121c952685935a83ce98eb

Contents?: true

Size: 1.33 KB

Versions: 40

Compression:

Stored size: 1.33 KB

Contents

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


/**
  @class

  Displays a horizontal or vertical separator line.  Simply create one of 
  these views and configure the layout direction and layout frame.
  
  @extends SC.View
  @since SproutCore 1.0
*/
SC.SeparatorView = SC.View.extend(
/** @scope SC.SeparatorView.prototype */ {

  /**
    @type Array
    @default ['sc-separator-view']
    @see SC.View#classNames
  */
  classNames: ['sc-separator-view'],
  
  /**
    @type String
    @default 'span'
    @see SC.View#tagName
  */
  tagName: 'span',

  /** 
    Select the direction of the separator line. Possible values:
    
      - SC.LAYOUT_VERTICAL
      - SC.LAYOUT_HORIZONTAL
    
    @type String
    @default SC.LAYOUT_HORIZONTAL
  */
  layoutDirection: SC.LAYOUT_HORIZONTAL,

  /** @private */
  render: function(context, firstTime) {
    if(firstTime) context.push('<span></span>');
    context.addClass(this.get('layoutDirection'));
  }

});

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
sproutcore-1.11.0 lib/frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutcore-1.11.0.rc3 lib/frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutcore-1.11.0.rc2 lib/frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutcore-1.11.0.rc1 lib/frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutcore-1.10.3.1 lib/frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutcore-1.10.2 lib/frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutcore-1.10.1 lib/frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutcore-1.10.0 lib/frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutcore-1.10.0.rc.3 lib/frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutcore-1.10.0.rc.2 lib/frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutcore-1.10.0.rc.1 lib/frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutcore-1.9.2 lib/frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutcore-1.9.1 lib/frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutcore-1.9.0 lib/frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutcore-1.8.2.1 lib/frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutcore-1.8.1 lib/frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutcore-1.8.0 lib/frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutcore-1.7.1.beta-java lib/frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutcore-1.7.1.beta lib/frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutcore-1.6.0.1-java lib/frameworks/sproutcore/frameworks/desktop/views/separator.js