smart-webcomponents-angular
Version:
[](https://jqwidgets.com/license/)
42 lines (41 loc) • 2.44 kB
TypeScript
import { Validator } from './../index';
import { ValidatorRule } from './../index';
import { AfterViewInit, ElementRef, OnInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
import { BaseElement } from './smart.element';
import * as i0 from "@angular/core";
export { ValidatorRuleType, ValidatorRule, ElementRenderMode } from './../index';
export { Smart } from './smart.element';
export { Validator } from './../index';
export declare class ValidatorComponent extends BaseElement implements OnInit, AfterViewInit, OnDestroy, OnChanges {
constructor(ref: ElementRef<Validator>);
private eventHandlers;
nativeElement: Validator;
/** @description Creates the component on demand.
* @param properties An optional object of properties, which will be added to the template binded ones.
*/
createComponent(properties?: {}): any;
/** @description */
get rules(): ValidatorRule[];
set rules(value: ValidatorRule[]);
/** @description Specifies a valid CSS selector that identifies the HTML element on the page which will serve as the container for displaying validation error messages. This selector determines where the error messages will appear within the user interface. */
get validationSummarySelector(): string;
set validationSummarySelector(value: string);
/** @description Removes all error messages from the current context, ensuring that no error notifications are displayed to the user. This action resets the error state, allowing for a clean user experience without residual error indicators.
*/
reset(): void;
/** @description Displays the drop-down menu, making its list of options visible to the user.
* @param {Function} result?. A callback function to call when validating inputs.
*/
validate(result?: Function): void;
get isRendered(): boolean;
ngOnInit(): void;
ngAfterViewInit(): void;
ngOnDestroy(): void;
ngOnChanges(changes: SimpleChanges): void;
/** @description Add event listeners. */
private listen;
/** @description Remove event listeners. */
private unlisten;
static ɵfac: i0.ɵɵFactoryDeclaration<ValidatorComponent, never>;
static ɵdir: i0.ɵɵDirectiveDeclaration<ValidatorComponent, "jqxValidator, [jqxValidator]", ["jqxValidator"], { "rules": "rules"; "validationSummarySelector": "validationSummarySelector"; }, {}, never>;
}