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

How to show default value in type select titleMAP #1003

Open agishk opened 1 year ago

agishk commented 1 year ago

I have a select options and need to show a default value like arial in HTML: Below is the code in js: {
 key: "labelling.fontFamily",
 type: "select",
 titleMap: [
 {value: "arial", name: "Arial"},
 {value: "courier new", name: "Courier New"},
 {value: "verdana", name: "Verdana"}
 ],
 default: "arial"
},

@Anthropic