| 12345678910111213141516171819202122232425 |
- /**
- * DevExtreme (ui/validation/validation_mixin.js)
- * Version: 19.1.16
- * Build date: Tue Oct 18 2022
- *
- * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
- * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
- */
- "use strict";
- var ValidationMixin = {
- _findGroup: function() {
- var group = this.option("validationGroup");
- var $dxGroup;
- if (!group) {
- $dxGroup = this.$element().parents(".dx-validationgroup").first();
- if ($dxGroup.length) {
- group = $dxGroup.dxValidationGroup("instance")
- } else {
- group = this._modelByElement(this.$element())
- }
- }
- return group
- }
- };
- module.exports = ValidationMixin;
|