Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow NestedModel and Object editors' form options to be extended/overridden. #381

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DouweM
Copy link
Contributor

@DouweM DouweM commented May 20, 2014

I wanted to be able to override the fields rendered and template used by the nested form.

Contrived example:

new Backbone.Form({
  schema: {
    address: {
      type: "NestedModel",
      model: Address,
      formOptions: {
        template: JST["address_form"],
        fields: ["street_address", "locality", "postal_code", "region", "country"]
      }
    }
  }
});

@powmedia
Copy link
Owner

Looks like useful improvements, thanks @DouweM. Would you be able to provide any tests and if possible docs in the readme?

@DouweM
Copy link
Contributor Author

DouweM commented May 20, 2014

Sure, but those'll have to come a bit later. Will keep this tab open and hopefully get to it in the next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants