Sha256: b45c5ceaad7cc39f40cd348085005ce36a9d42e8f2a880a5181340c41293e971
Contents?: true
Size: 1.53 KB
Versions: 2
Compression:
Stored size: 1.53 KB
Contents
// ========================================================================== // Project: SproutCore - JavaScript Application Framework // Copyright: ©2006-2009 Sprout Systems, Inc. and contributors. // Portions ©2008-2009 Apple, Inc. All rights reserved. // License: Licened under MIT license (see license.js) // ========================================================================== /** @class A toolbar view can be anchored at the top or bottom of the window to contain your main toolbar buttons. The default implementation assumes you may have a leftView, rightView, and centerView, which will be properly laid out. You can also override the layout property yourself or simply set the anchorLocation to SC.ANCHOR_TOP or SC.ANCHOR_BOTTOM. This will configure the layout of your toolbar automatically when it is created. @extends SC.View @since SproutCore 1.0 */ SC.ToolbarView = SC.View.extend( /** @scope SC.ToolbarView.prototype */ { classNames: ['sc-toolbar-view'], /** Default anchor location. This will be applied automatically to the toolbar layout if you set it. */ anchorLocation: null, // .......................................................... // INTERNAL SUPPORT // /** @private */ layout: { left: 0, height: 36, right: 0 }, /** @private */ init: function() { // apply anchor location before setting up the rest of the view. if (this.anchorLocation) { this.layout = SC.merge(this.layout, this.anchorLocation); } sc_super(); } });
Version data entries
2 entries across 2 versions & 1 rubygems