dschnelldavis / angular2-json-schema-form

Angular 2 JSON Schema Form builder
MIT License
285 stars 177 forks source link

Options object in Angular Schema Form #315

Open angelcuenca opened 5 years ago

angelcuenca commented 5 years ago

I need a field textarea according to the documentation it's adding an options attribute:

options object to set any global options for the form

html

<json-schema-form [schema]="schema" [options]="schemaFormOptions"></json-schema-form>

options:

schemaFormOptions = 
{
  key: "Description",
  type: "textarea",
};

json schema:

{
  "Description": {
    "type": "string"
  }
}

After loading the form, an input instead of textarea field is generated for Description.