Sha256: 207c8f02ba484c3d72db7a81d21c2fcdade1a582a1a687509190048262504c55

Contents?: true

Size: 1.01 KB

Versions: 11

Compression:

Stored size: 1.01 KB

Contents

// ========================================================================
// SproutCore -- JavaScript Application Framework
// Copyright ©2006-2008, Sprout Systems, Inc. and contributors.
// Portions copyright ©2008 Apple, Inc.  All rights reserved.
// ========================================================================

/**
  @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 */ {

  classNames: ['sc-separator-view'],
  tagName: 'span',

  /** 
    Select the direction of the separator line.  Must be one of SC.LAYOUT_VERTICAL or SC.LAYOUT_HORIZONTAL.
    
    @property {String}
  */
  layoutDirection: SC.LAYOUT_HORIZONTAL,

  render: function(context, firstTime) {

    context.push('<span></span>');
	context.addClass(this.get('layoutDirection'));
  }



});

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sproutit-sproutcore-1.0.0.20090408130025 frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutit-sproutcore-1.0.0.20090416161445 frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutit-sproutcore-1.0.0.20090720093355 frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutit-sproutcore-1.0.0.20090720202429 frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutit-sproutcore-1.0.0.20090721125122 frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutit-sproutcore-1.0.126 frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutit-sproutcore-1.0.20090721145251 frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutit-sproutcore-1.0.20090721145280 frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutit-sproutcore-1.0.20090721145281 frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutit-sproutcore-1.0.20090721145282 frameworks/sproutcore/frameworks/desktop/views/separator.js
sproutit-sproutcore-1.0.203 frameworks/sproutcore/frameworks/desktop/views/separator.js