Sha256: da013fed63ec4d15695e782ddd848baf283ca10235896858b636e509ee1791b0

Contents?: true

Size: 734 Bytes

Versions: 5

Compression:

Stored size: 734 Bytes

Contents

// ==========================================================================
// Project:   SproutCore - JavaScript Application Framework
// Copyright: ©2006-2011 Strobe Inc. and contributors.
//            Portions ©2008-2010 Apple Inc. All rights reserved.
// License:   Licensed under MIT license (see license.js)
// ==========================================================================
/*globals TestControls */

TestControls.buttonsController = SC.Controller.create({
  theme: 'square',
  
  toggleable: YES,
  selected: NO,
  disabled: NO,
  'default': NO,
  
  buttonBehavior: function() {
    if (this.get('toggleable')) return SC.TOGGLE_BEHAVIOR;
    return SC.PUSH_BEHAVIOR;
  }.property('toggleable').cacheable()
});

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
spade-0.0.1 sproutcore/apps/test_controls/controllers/buttons.js
sproutcore-1.5.0.pre.5 lib/frameworks/sproutcore/apps/test_controls/controllers/buttons.js
sproutcore-1.5.0.pre.4.1 lib/frameworks/sproutcore/apps/test_controls/controllers/buttons.js
sproutcore-1.5.0.pre.4 lib/frameworks/sproutcore/apps/test_controls/controllers/buttons.js
sproutcore-1.5.0.pre.3 lib/frameworks/sproutcore/apps/test_controls/controllers/buttons.js