我有一个剑道网格,一列应该期望一个介于 0 到 12 之间的数字。除了 HourTimeHours 之外,其他一切都运行良好。我不能将最小值小于 0,但我可以为此设置超过 12。请帮忙。
schema: {
model: {
id: "ID",
fields: {
ID: { editable: false },
TName: { editable: false },
HourTimeHours: { editable: true, type: "number", validation: { required: true, min: 0, max: 12 } },
Comment: { editable: true, nullable: true },
Reason: { editable: false, nullable: true },
ChargeRateText: { defaultValue: { CategoryID: "No Charge", CategoryName: "No Charge" } },
}
},