core/forms/form-group.component.ts
A form group helps to validate an input of a form element.
Example : <c8y-form-group [hasWarning]="user.email.length === 0">
<label translate for="userEmail">Email</label>
<input
id="userEmail"
class="form-control"
type="email"
name="email"
[maxlength]="254"
autocomplete="off"
placeholder="{{'e.g. joe.doe@exmpl.com' | translate}}"
[(ngModel)]="user.email"
email
required
>
<c8y-messages>
<c8y-message *ngIf="user.email.length === 0" translate></c8y-message>
<c8y-message name="required" text="The E-Mail is SUPER required"></c8y-message>
</c8y-messages>
</c8y-form-group>
AfterContentInit
DoCheck
OnDestroy
| host | { |
| selector | c8y-form-group |
| standalone | true |
| imports | |
| templateUrl | ./form-group.component.html |
FormsModule
AccessMappingComponent
ActilityMultipleLnsConnectorComponent
ActivityLogComponent
AddApplicationComponent
AddBrandingModalComponent
AddCustomIconModalComponent
AddDeviceProfileComponent
AddExternalApplicationComponent
AddFirmwareModalComponent
AddFirmwarePatchModalComponent
AddGroupComponent
AddMicroserviceComponent
AddSmartGroupComponent
AddSoftwareModalComponent
AddTranslationModalComponent
AddTrustedCertificateComponent
AlarmEventAttributesFormComponent
AlarmListWidgetConfigComponent
AlarmsDateFilterComponent
ApplicationPropertiesComponent
ApplicationPropertiesFormComponent
BasicAuthSettingsComponent
BasicConfigurationComponent
BulkDeviceRegistrationModalComponent
ChildPredicatesComponent
ConfigurationDetailComponent
ConfigureCustomColumnComponent
CreateBulkOperationDetailsComponent
CreationTimeFilteringFormRendererComponent
CrlSettingsComponent
CurrentPasswordModalComponent
CustomPropertyFieldComponent
DashboardAppearanceSettingsComponent
DashboardVisibilityModalComponent
DatapointAttributesFormComponent
DatapointsListConfigComponent
DatePickerComponent
DateTimeContextPickerComponent
DeleteAssetsModalComponent
DeviceProfileComponent
EventListWidgetConfigComponent
EventsDateFilterComponent
ExtensibleBulkDeviceRegistrationModalComponent
ExtensibleDeviceRegistrationStepperComponent
ExternalTokenConfigComponent
FilePickerComponent
FilePickerFormControlComponent
FirmwareDetailsComponent
GroupInfoComponent
HistoryModeConfigurationControlsComponent
ImageWidgetConfigComponent
InfoGaugeWidgetConfigComponent
InputGroupEditableComponent
InstallFromPackageComponent
IpRangeInputListComponent
KpiWidgetConfigComponent
LicenseConfirmModalComponent
ListFiltersComponent
LiveModeConfigurationControlsComponent
LocationComponent
LoginSettingsComponent
LogoutConfigurationComponent
LoriotMultipleLnsConnectorComponent
LpwanAssignDeviceProtocolComponent
LpwanAssignLnsConnectionsComponent
MarkdownWidgetConfigComponent
NewPasswordComponent
OpcuaAutoApplySettingsComponent
OpcuaDeviceProtocolDataReportingComponent
OpcuaDeviceProtocolMapping
OpcuaServerConfigComponent
OperationSchedulerComponent
PackageVersionSelectComponent
PasswordConfirmModalComponent
PlatformConfigurationFormComponent
ProviderConfigurationComponent
QuickLinksWidgetConfigAddLinkComponent
RequestConfigurationComponent
SaveToRepositoryComponent
<ng-content></ng-content>
@if (!customErrorMessage) {
<c8y-messages [show]="errors"></c8y-messages>
}