我正在使用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
生成一个输入字段。有什么建议吗?