The Error component allows you to configure custom error messages to be displayed on screen when the error conditions are met.
- Drag and drop an Error component to the page container.
- Double click the component to display the list of attributes that can be used with it.
- Fill the required attributes.
- Save and run the page.
- Drag and drop an Input component.
- Open the Attributes window and enter u_sername_ for
[(ngModel)]field. - Drag and drop an Error component to the page.
- Click the Error component to open it's attributes window.
- Specify This field is required as the error message in the
Error Messagefield. - Specify
username.dirtyas the error condition. - Save and run the page.
- On page rendering, if you touch the Input component and do not specify a value, you will see a error message pop up.
-
Error Label: The Display name of the error.
-
style: Accepts a string value that affects different properties of the Card such as height, width, and color, based on the values provided. For example:
background:orange:height:200px. -
class: Used to point to a class in a style sheet. Each class contains one or more style statements defined in the Style editor. The
Classfield accepts space separated class names such asclass1 class2, where each class is defined in the Style editor as shown below:.class1 { border-radius:10px; flex-basis:10%; height:100px; } .class2 { border-radius:10px; flex-basis:10%; height:100px; }
-
Error Message: Enter the information to be displayed on the screen when the error is generated.
-
Error Condition: Specify the condition which defines an error.
- Devices: Android, iOS
- Browsers: Latest version of all modern browsers
- Dependencies version:
- Angular CLI version: 6.0.0 +
- Cordova version: 7.1.0 +