validation_mixin.js 773 B

12345678910111213141516171819202122232425
  1. /**
  2. * DevExtreme (ui/validation/validation_mixin.js)
  3. * Version: 19.1.16
  4. * Build date: Tue Oct 18 2022
  5. *
  6. * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
  7. * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
  8. */
  9. "use strict";
  10. var ValidationMixin = {
  11. _findGroup: function() {
  12. var group = this.option("validationGroup");
  13. var $dxGroup;
  14. if (!group) {
  15. $dxGroup = this.$element().parents(".dx-validationgroup").first();
  16. if ($dxGroup.length) {
  17. group = $dxGroup.dxValidationGroup("instance")
  18. } else {
  19. group = this._modelByElement(this.$element())
  20. }
  21. }
  22. return group
  23. }
  24. };
  25. module.exports = ValidationMixin;