我的架构有以下代码:
schema: {
model: {
fields: {
col1: {
type: "string", editable: true, nullable: false,
validation:{ required: { message: "Name is Required." } }
},
col2: {
type: "string", editable: true, nullable: false,
validation:{ required: { message: "Please Select a Main Language." } }
},
col3:{
type: "Array[]", editable: true, nullable: false,
validation:{ required: { message: "Please Select Supported Language(s)." } }
},
col4: {
type: "string", editable: false, nullable: true
},
col5: {
type: "string", editable: false, nullable: true
}
}
}
}
列代码片段
{
field: "col4",
title: "Column4",
width:"200px",
editable:false,
nullable: true
},
{
field: "col5",
title: "Column5",
width:"200px",
editable:false,
nullable: true
}
我想禁用最后两个(状态和未本地化计数)。如您所见,我已经使用了可编辑和可空的。我的目标是发送一个没有这两个 JSON 格式的 HTTP 帖子
{"col1":"string", "col2":"string","col3":["string"]}