Sha256: b8a70cad37620eca34d076f6b0d401338c78ece0a380602cea0c123324202a4d

Contents?: true

Size: 1.64 KB

Versions: 25

Compression:

Stored size: 1.64 KB

Contents

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

/*globals TestControls Forms*/
TestControls.checkboxesPage = SC.View.design({
  childViews: "form".w(),
  form: SC.FormView.design({
    classNames: ["sample_controls"],
    layout: { left: 20, top: 40, right: 20, bottom: 40 },
    childViews: "header small normal disabled multiple icon".w(),
    
    header: SC.LabelView.design({
      fillWidth: YES,
      layout: { width: 200, height: 24 },
      classNames: "header".w(),
      value: "Checkboxes"
    }),
    
    small: SC.FormView.row(SC.CheckboxView.design({
      layout: {width: 150, height: 24},
      title: "Check Me",
      controlSize: SC.SMALL_CONTROL_SIZE
    })),
    
    normal: SC.FormView.row(SC.CheckboxView.design({
      layout: { width: 150, height: 24 },
      title: "Check Me"
    })),
    
    disabled: SC.FormView.row(SC.CheckboxView.design({
      layout: { width: 150, height: 24 },
      isEnabled: NO,
      title: "Don't Check Me"
    })),
    
    multiple: SC.FormView.row(SC.CheckboxView.design({
      layout: { width: 150, height: 24 },
      value: [YES, NO],
      title: "Multiple? Really?"
    })),

    icon: SC.FormView.row(SC.CheckboxView.design({
      layout: { width: 150, height: 24 },
      value: [YES, NO],
      title: "Icon",
      icon: "sc-icon-info-16"
    }))
  })
});

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
sproutcore-1.8.2.1 lib/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js
sproutcore-1.8.1 lib/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js
sproutcore-1.8.0 lib/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js
sproutcore-1.7.1.beta-java lib/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js
sproutcore-1.7.1.beta lib/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js
sproutcore-1.6.0.1-java lib/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js
sproutcore-1.6.0.1 lib/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js
sproutcore-1.6.0.1-x86-mingw32 lib/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js
sproutcore-1.6.0 lib/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js
sproutcore-1.6.0-java lib/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js
sproutcore-1.6.0.rc.2-x86-mingw32 lib/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js
sproutcore-1.6.0.rc.2 lib/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js
sproutcore-1.6.0.rc.2-java lib/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js
sproutcore-1.6.0.rc.1-x86-mingw32 lib/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js
sproutcore-1.6.0.rc.1 lib/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js
sproutcore-1.6.0.rc.1-java lib/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js
sproutcore-1.6.0.beta.3-x86-mingw32 lib/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js
sproutcore-1.6.0.beta.3-java lib/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js
sproutcore-1.6.0.beta.3 lib/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js
sproutcore-1.6.0.beta.2-x86-mingw32 lib/frameworks/sproutcore/apps/test_controls/resources/checkboxes_page.js