@nova-ui/dashboards
Version:
Nova Dashboards is a framework designed to provide feature developers with a common solution for presenting data coming from various sources within a single view, as well as a set of predefined widget visualizations that are 100% configuration-driven and
12 lines (11 loc) • 595 B
TypeScript
import { AbstractControl } from "@angular/forms";
/**
* Checks whether given form has a field that should be visually marked as invalid.
* Form is not in an error state if it's untouched even if it's invalid at that moment,
* a user must first interact with the form before it can be considered as invalid.
* 'invalid' form property should not be used for the purpose of this function,
* it can be affected by its children form statuses, which can be considered as valid (untouched).
*
* @param parent
*/
export declare function hasControlInErrorState(parent: AbstractControl): boolean;