Sha256: 98e31bf89ed660d9570864e642a5e6569fb2abf65749b80763c66e725c4c643a
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 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 */ { 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sproutcore-1.5.0.rc.1 | lib/frameworks/sproutcore/frameworks/desktop/views/separator.js |