Open a95tbirdsc opened 6 months ago
Hi, you can define your own validator
this should work :
{
name: "IdShift", validate: myValidatorNotNullOrEmpty(), type: "select", align: "left", width: "10%", items: ['1', '2'],
},
function myValidatorNotNullOrEmpty() {
return {
validator: function (value) {
return value !== '' && value !== null && value !== undefined && value !== 0;
},
message: function (value, item, param) {
return "this value must be not null or empty :) ";
}
};
}
Hello,
I have implemented this code https://github.com/tabalinas/jsgrid/blob/master/demos/custom-grid-field.html into my jsGrid but how do I validate the DatePicker field?
What am I trying to do?
`
var MyDateField = function(config) { jsGrid.Field.call(this, config); };
`
`
`