templates-rythm.model.js Maven / Gradle / Ivy
@args List models,String entity
define([
'kendo/kendo.data.min', 'robe/Validations'
], function() {
var @entity=kendo.data.Model.define({
id: "oid",
fields: {
oid: {
editable: false,
nullable: true,
type: "string"
},@for (io.robe.crud.helper.Model model: models).join() {
{
editable : true,
nullable: @model.isNullable(),
validation: getValidations("@model.getName()","@model.getName()",@(!model.isNullable()), false, 0, @model.getLength(),""),
type:"@model.getType()"
}
}
});
return @entity;
});
© 2015 - 2025 Weber Informatics LLC | Privacy Policy