Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在我们的应用程序中使用 JSGrid。当我通过单击 + 按钮添加新行时,即使未在网格中输入数据,jsgrid 也会添加该空行。那么,我们是否有一个函数可以验证和限制这些在 jsgrid 中添加空行的行为
您是否尝试将 validate 属性添加到您的必填字段?
IE
fields: [ { name: "Name", type: "text", width: 150, validate: "required" }, { name: "Age", type: "number", width: 50, validate: "required" } ]