Skip to content

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