Angular Schema Form中的Options对象

时间:2019-01-23 21:52:52

标签: angular angular-schema-form

我正在使用Angular2 Schema Form绘制表单,但是根据添加了options属性的文档,我需要一个字段textarea:

  

options对象可为表单设置任何全局选项

html:

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

选项:

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

json模式:

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

加载表单后,将为Description生成一个输入字段。有什么建议吗?

0 个答案:

没有答案