json-schema-form / angular-schema-form

Generate forms from a JSON schema, with AngularJS!
https://json-schema-form.github.io/angular-schema-form
MIT License
2.47k stars 653 forks source link

Use custom property names for select #765

Open alber70g opened 8 years ago

alber70g commented 8 years ago

Is it possible to use custom property names for a select. For example I have the following array:

[
  { 
    id: 1,
    name: "blaat"
  },
  {
    id: 2,
    name: "another blaat"
  }
]

And define in the metadata to use id and name as respectively value and name?

Anthropic commented 8 years ago

@Alber70g I have added this to the Material repo and I will try to find time to add it to the Bootstrap one also, but as of right now it doesn't give you the option, you would have to parse it on load. I am not sure if the dynamic select add-on can do it or not, may be worth checking that one.