Browse Source

Make inputId optional in FormInputComponent

Change inputId from input.required<string>() to input<string>() so the id is no longer mandatory. This relaxes the API to allow FormInputComponent instances without an explicit id and avoids forcing callers to provide one.
pull/24883/head
Fahri Gedik 1 month ago
parent
commit
fa38c69f0c
  1. 2
      npm/ng-packs/packages/theme-shared/src/lib/components/form-input/form-input.component.ts

2
npm/ng-packs/packages/theme-shared/src/lib/components/form-input/form-input.component.ts

@ -34,7 +34,7 @@ import { AbstractNgModelComponent, LocalizationPipe } from '@abp/ng.core';
imports: [LocalizationPipe, FormsModule],
})
export class FormInputComponent extends AbstractNgModelComponent {
readonly inputId = input.required<string>();
readonly inputId = input<string>();
readonly inputReadonly = input(false);
readonly label = input('');
readonly labelClass = input('form-label');

Loading…
Cancel
Save