Sha256: f494c3cacd8c782d703bd52ec1c10fd37810b49e02036aca8e301a39a21a9b7d
Contents?: true
Size: 1.53 KB
Versions: 9
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: 32, 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
9 entries across 9 versions & 1 rubygems