Sha256: a00547349f9491f65506cf9d9799ed2005f0e6257f6e764ed4b1ce48850b8e19

Contents?: true

Size: 1.74 KB

Versions: 11

Compression:

Stored size: 1.74 KB

Contents

/*globals Test */

Test.loginPage = SC.Page.create({

  mainPane: SC.MainPane.design({

    childViews: 'mainView'.w(),

    mainView: SC.View.design({

      childViews: 'headerView usernameView passwordView footerView'.w(),

      layout: { centerX: 0, centerY: 0, width: 300, height: 150 },

      headerView: SC.LabelView.design({
        classNames: ['header-label'],
        layout: { top: 0, left: 0, right: 0, height: 30 },
        value: 'Login'
      }),

      usernameView: SC.View.design({
        childViews: 'labelView textfieldView'.w(),
        layout: { top: 30, left: 0, right: 0, height: 30 },
        labelView: SC.LabelView.design({
          layout: { centerX: 0, left: 0, height: 24, width: 80 },
          value: "Username:"
        }),
        textfieldView: SC.TextFieldView.design({
          layout: { centerX: 0, left: 90, right: 0, height: 24 },
          valueBinding: 'Test.loginController.username'
        })
      }),

      passwordView: SC.View.design({
        childViews: 'labelView textfieldView'.w(),
        layout: { top: 60, left: 0, right: 0, height: 30 },
        labelView: SC.LabelView.design({
          layout: { centerX: 0, left: 0, height: 24, width: 80 },
          value: "Password:"
        }),
        textfieldView: SC.TextFieldView.design({
          layout: { centerX: 0, left: 90, right: 0, height: 24 },
          valueBinding: 'Test.loginController.password'
        })
      }),

      footerView: SC.View.design({
        childViews: 'buttonView'.w(),
        layout: { top: 120, left: 0, right: 0, bottom: 0 },
        buttonView: SC.ButtonView.design({
          layout: { height: 24, width: 80, right: 0, bottom: 0 },
          title: 'Login',
          action: 'login'
        })
      })

    })

  })

});

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
sproutcore-1.11.0 lib/frameworks/sproutcore/apps/statechart_routing/resources/login_page.js
sproutcore-1.11.0.rc3 lib/frameworks/sproutcore/apps/statechart_routing/resources/login_page.js
sproutcore-1.11.0.rc2 lib/frameworks/sproutcore/apps/statechart_routing/resources/login_page.js
sproutcore-1.11.0.rc1 lib/frameworks/sproutcore/apps/statechart_routing/resources/login_page.js
sproutcore-1.10.3.1 lib/frameworks/sproutcore/apps/statechart_routing/resources/login_page.js
sproutcore-1.10.2 lib/frameworks/sproutcore/apps/statechart_routing/resources/login_page.js
sproutcore-1.10.1 lib/frameworks/sproutcore/apps/statechart_routing/resources/login_page.js
sproutcore-1.10.0 lib/frameworks/sproutcore/apps/statechart_routing/resources/login_page.js
sproutcore-1.10.0.rc.3 lib/frameworks/sproutcore/apps/statechart_routing/resources/login_page.js
sproutcore-1.10.0.rc.2 lib/frameworks/sproutcore/apps/statechart_routing/resources/login_page.js
sproutcore-1.10.0.rc.1 lib/frameworks/sproutcore/apps/statechart_routing/resources/login_page.js