Sha256: 092f81c7c4e8f6e4b832b790dec0df9cbca8ee80e47de26bf046a7979969473f
Contents?: true
Size: 1.02 KB
Versions: 33
Compression:
Stored size: 1.02 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) { if(firstTime) context.push('<span></span>'); context.addClass(this.get('layoutDirection')); } });
Version data entries
33 entries across 33 versions & 1 rubygems