Angularjs 角度模式表单访问对象,带有表单中的数组
我有一个场景,需要在命名对象中显示数组,如下所示:Angularjs 角度模式表单访问对象,带有表单中的数组,angularjs,angular-schema-form,Angularjs,Angular Schema Form,我有一个场景,需要在命名对象中显示数组,如下所示: "actions": { "singleSelection": [ { "chartable": false, "label": "" } ] } 我已经通过以下模式完成了它: "schema": { "type": "object", "title": "smart_report", "properties": { "actio
"actions": {
"singleSelection": [
{
"chartable": false,
"label": ""
}
]
}
我已经通过以下模式完成了它:
"schema": {
"type": "object",
"title": "smart_report",
"properties": {
"actions": {
"title": "Actions",
"type": "object",
"properties": {
"singleSelection": {
"title": "Action: Single selection",
"type": "array",
"maxItems": 10,
"items": {
"type": "object",
"properties": {
"field": {
"title": "Field name",
"type": "string"
},
"label": {
"title": "Label",
"type": "string",
"description": "Label will be used for column name."
},
"chartable": {
"title": "Chartable",
"type": "boolean"
}
}
}
}
}
}
}
现在,我正在尝试在“发件人”中的“操作”上设置“notitle”标志,并尝试访问“操作”的属性,但它没有按预期工作:
{
"key": "actions",
"notitle": true,
"properties": {
"key": "singleSelection",
"notitle": true,
"startEmpty": true
}
},
我仍然看到“singleSelection”和“stratEmpty”的操作标题也没有设置。如果您从架构中删除标题,并使用notitle属性,它应该可以工作
(如果您删除标题,但不使用notitle属性,则标题将以与键相同的名称显示)。如果您从架构中删除标题,并使用notitle属性,则它应该可以工作 (如果您删除了标题,但未使用notitle属性,则标题将以与键相同的名称显示)