UNPKG

igniteui-webcomponents

Version:

Ignite UI for Web Components is a complete library of UI components, giving you the ability to build modern web applications using encapsulation and the concept of reusable components in a dependency-free approach.

13 lines 476 B
import { ValidationResourceStringsEN } from 'igniteui-i18n-core'; import { getGroup } from './utils.js'; export const radioValidators = [ { key: 'valueMissing', message: ValidationResourceStringsEN.required_validation_error, isValid: (host) => { const { radios, checked } = getGroup(host); return radios.some((radio) => radio.required) ? checked.length > 0 : true; }, }, ]; //# sourceMappingURL=validators.js.map