Sha256: 0e6527b94e61053a666c57aad0ecd0e203ce1fc98493932ccb5075aef912bca6

Contents?: true

Size: 1.32 KB

Versions: 5

Compression:

Stored size: 1.32 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.textFieldPage = SC.View.design({
  childViews: "form".w(),
  form: SC.ScrollView.design({
    
    
    contentView: SC.FormView.design({
      theme: "iphone-form",
    
      classNames: ["sample_controls"],
      layout: { left: 20, top: 40, right: 20, bottom: 40 },
      childViews: "header normal disabled".w(),
    
      header: SC.LabelView.design({
        layout: { width: 200, height: 44 },
        classNames: "header".w(),
        value: "Text Fields"
      }),
    
      normal: SC.FormView.row(SC.TextFieldView.design({
        layout: { left: 0, width: 150, height: 44, centerY: 0},
        value: "Text",
        isSpacer: YES
      }), { classNames: ["first"] }),
    
      disabled: SC.FormView.row(SC.TextFieldView.design({
        layout: { left: 0, width: 150, height: 44, centerY: 0},
        isEnabled: NO,
        value: "Disabled",
        isSpacer: YES
      }))
    })
  })
});

Version data entries

5 entries across 5 versions & 2 rubygems

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