dschnelldavis/angular2-json-schema-form

Options object in Angular Schema Form

angelcuenca opened this issue · 0 comments

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.