UNPKG

@mui/x-data-grid-pro

Version:

The Pro plan edition of the MUI X Data Grid components.

21 lines (20 loc) 461 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RowReorderValidator = void 0; class RowReorderValidator { constructor(rules) { this.rules = rules; } validate(context) { // Check all validation rules for (const rule of this.rules) { if (rule.applies(context) && rule.isInvalid(context)) { return false; } } return true; } } exports.RowReorderValidator = RowReorderValidator;