Sha256: 0e3a8622c5e90f259016b4dee57f87dcace53101569f3568766d960c347bf4dc

Contents?: true

Size: 1.55 KB

Versions: 5

Compression:

Stored size: 1.55 KB

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 Forms*/
TestControls.slidersPage = 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 jumbo disabled".w(),
    // Plain Views
    header: SC.LabelView.design({
      layout: { width: 250, height: 18 },
      value: "Sliders",
      classNames: "header".w()
    }),
    
    small: SC.FormView.row(SC.SliderView.design({
      layout: { width: 150, height: 14 },
      controlSize: SC.SMALL_CONTROL_SIZE,
      minimum: 0,
      maximum: 10,
      value: 2
    })),
    
    normal: SC.FormView.row(SC.SliderView.design({
      layout: { width: 150, height: 16 },
      minimum: 0,
      maximum: 10,
      value: 2
    })),
    
    jumbo: SC.FormView.row(SC.SliderView.design({
      controlSize: SC.JUMBO_CONTROL_SIZE,
      layout: { width: 150, height: 22 },
      minimum: 0,
      maximum: 10,
      value: 2
    })),
    
    disabled: SC.FormView.row(SC.SliderView.design({
      layout: { width: 150, height: 16},
      isEnabled: NO,
      minimum: 0,
      maximum: 10,
      value: 2
    }))
  })
});

Version data entries

5 entries across 5 versions & 2 rubygems

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