Sha256: ec549da6fa6f7ea662dbc15c7fd1bda2d5579def611b3544b736889d6435dd2d

Contents?: true

Size: 1 KB

Versions: 22

Compression:

Stored size: 1 KB

Contents

// ==========================================================================
// SC.CheckboxView
// ==========================================================================

require('views/button/button');

/** @class

  Renders a checkbox button view specifically.
  
  This view is basically a button view preconfigured to generate the correct
  HTML and to set to use a TOGGLE_BEHAVIOR for its buttons.
  
  This view renders a simulated checkbox that can display a mixed state and 
  has other features not found in platform-native controls.  If you want to 
  use the platform native version instead, see SC.CheckboxFieldView.

  @extends SC.ButtonView
  @author    Charles Jolley 
  @version 1.0
*/
SC.CheckboxView = SC.ButtonView.extend(
/** @scope SC.CheckboxView.prototype */ {

  emptyElement: '<a href="javascript:;" class="sc-checkbox-view sc-button-view button checkbox"><img src="%@" class="button" /><span class="label"></span></a>'.fmt(static_url('blank')),
  
  buttonBehavior: SC.TOGGLE_BEHAVIOR
  
}) ;

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
sproutcore-0.9.10 frameworks/sproutcore/views/button/checkbox.js
sproutcore-0.9.11 frameworks/sproutcore/views/button/checkbox.js
sproutcore-0.9.12 frameworks/sproutcore/views/button/checkbox.js
sproutcore-0.9.15 frameworks/sproutcore/views/button/checkbox.js
sproutcore-0.9.13 frameworks/sproutcore/views/button/checkbox.js
sproutcore-0.9.14 frameworks/sproutcore/views/button/checkbox.js
sproutcore-0.9.17 frameworks/sproutcore/views/button/checkbox.js
sproutcore-0.9.18 frameworks/sproutcore/views/button/checkbox.js
sproutcore-0.9.16 frameworks/sproutcore/views/button/checkbox.js
sproutcore-0.9.19 frameworks/sproutcore/views/button/checkbox.js
sproutcore-0.9.2 frameworks/sproutcore/views/button/checkbox.js
sproutcore-0.9.22 frameworks/sproutcore/views/button/checkbox.js
sproutcore-0.9.23 frameworks/sproutcore/views/button/checkbox.js
sproutcore-0.9.21 frameworks/sproutcore/views/button/checkbox.js
sproutcore-0.9.20 frameworks/sproutcore/views/button/checkbox.js
sproutcore-0.9.5 frameworks/sproutcore/views/button/checkbox.js
sproutcore-0.9.4 frameworks/sproutcore/views/button/checkbox.js
sproutcore-0.9.3 frameworks/sproutcore/views/button/checkbox.js
sproutcore-0.9.7 frameworks/sproutcore/views/button/checkbox.js
sproutcore-0.9.8 frameworks/sproutcore/views/button/checkbox.js