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.

17 lines (16 loc) 663 B
import type { LitElement } from 'lit'; import type { Constructor } from './constructor.js'; import { type FormAssociatedElementInterface } from './form-associated.js'; export declare class FormRequiredInterface { protected requiredChange(): void; /** * Makes the control a required field in a form context. * @attr */ required: boolean; } /** * Turns the passed class element into a Form Associated Custom Element with * additional `required` attribute. */ export declare function FormAssociatedRequiredMixin<T extends Constructor<LitElement>>(superClass: T): Constructor<FormRequiredInterface & FormAssociatedElementInterface> & T;