Sha256: e4a8748325e1a24606bdcc0a52b97702403f84ed445aa50ee8a068bf5c2b96aa

Contents?: true

Size: 1.19 KB

Versions: 11

Compression:

Stored size: 1.19 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
  
  Disclosure triangle button.
  
  @extends SC.ButtonView
  @since SproutCore
*/
SC.DisclosureView = SC.ButtonView.extend(
/** @scope SC.DisclosureView.prototype */ {
  
  classNames: ['sc-disclosure-view'],
  
  theme: 'disclosure',
  buttonBehavior: SC.TOGGLE_BEHAVIOR,
  
  /**
    This is the value that will be set when the disclosure triangle is toggled
    open.
  */
  toggleOnValue: YES,
  
  /**
    The value that will be set when the disclosure triangle is toggled closed.
  */
  toggleOffValue: NO,
  
  /** @private */
  valueBindingDefault: SC.Binding.bool() ,
  
  /** @private */
  render: function(context, firstTime) {
    context.push('<img src="', SC.BLANK_IMAGE_URL, '" class="button" alt="" />');
    context.push('<label>',this.get('displayTitle'),'</label>');
  }
  
});

Version data entries

11 entries across 11 versions & 1 rubygems

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