Skip to content

Instantly share code, notes, and snippets.

@sproutit
Created October 26, 2009 19:19
Show Gist options
  • Select an option

  • Save sproutit/218939 to your computer and use it in GitHub Desktop.

Select an option

Save sproutit/218939 to your computer and use it in GitHub Desktop.
myForm: SC.FormView.design({
layout: { top: 0, left: 0, right: 0, bottom: 40 },
rows: 'name gender'.w(),
contentBinding: "MyApp.fooController",
name: SC.FormView.row({
fields: 'firstName lastName'.w(),
fieldLabel: 'Name:',
firstName: SC.FormView.field(SC.TextFieldView, { fieldLabel: NO }),
lastName: SC.FormView.field(SC.TextFieldView, { fieldLabel: NO })
}),
gender: SC.FormView.field(SC.RadioView, {
layout: { width: 100 },
items: 'male female'.w(),
fieldKey: 'contactGender',
fieldLabel: "Gender:",
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment