Documentation - Angular Dynamic Forms#24547
Conversation
There was a problem hiding this comment.
Pull request overview
This PR adds comprehensive documentation for the ABP Angular Dynamic Form Module, which allows developers to create dynamic, configurable forms without extensive HTML templates. The documentation addresses issue #24330 by providing complete reference material for this component library feature.
Changes:
- Added complete documentation for the Dynamic Form Module including installation, basic usage, configuration options, field types, validators, conditional logic, nested forms, custom components, and accessibility features
- Included multiple practical code examples demonstrating various features and use cases
- Provided detailed API reference for the DynamicFormComponent and DynamicFormService
| ```ts | ||
| interface FormFieldConfig { | ||
| key: string; // Unique identifier for the field | ||
| type: FieldType; // Type of the field |
There was a problem hiding this comment.
The interface documentation shows type: FieldType; but FieldType is not a defined type in the actual codebase. In the actual FormFieldConfig interface (dynamic-form.models.ts), the type property is defined as a union of string literals directly, not as a separate FieldType type. This should be updated to match the actual implementation: type: 'text' | 'email' | 'number' | 'select' | 'checkbox' | 'date' | 'textarea' | 'datetime-local' | 'time' | 'password' | 'tel' | 'url' | 'radio' | 'file' | 'range' | 'color' | 'group' | 'array';
| type: FieldType; // Type of the field | |
| type: 'text' | 'email' | 'number' | 'select' | 'checkbox' | 'date' | 'textarea' | 'datetime-local' | 'time' | 'password' | 'tel' | 'url' | 'radio' | 'file' | 'range' | 'color' | 'group' | 'array'; // Type of the field |
Resolves #24330