form-generator-typescript
v1.0.0
Published
The provided TypeScript code defines a multi-step and one-step form generator with styling, validation, and dynamic creation of form elements based on a configuration object.
Downloads
83
Maintainers
Readme
formGenerator
Form-generator
The provided TypeScript code defines a multi-step and one-step form generator with styling, validation, and dynamic creation of form elements based on a configuration object.
API Reference
Get all items
GET /api/countries?apiKey=encrypted_api_key_here
| Parameter | Type | Description |
| :-------- | :------- | :------------------------- |
| api_key
| string
| Required. Your API key |
Get item
GET /api/items/${id}
| Parameter | Type | Description |
| :-------- | :------- | :-------------------------------- |
| id
| string
| Required. Id of item to fetch |
Color Reference
| Color | Hex | | ----------------- | ------------------------------------------------------------------ | | First Color | #3498db | | Second Color | #56d8e4 | | Third Color | #2980b9 |
Styling Forms
The 'form-styles' directory contains form styles. The 'form-styles-one-step' file handles both one-step and multi-step forms, 'form-styles-multi-step' - only multi-step forms.
Configuration
The 'config' directory contains files responsible for configurating the Form Generator. You can customize class names, attributes and interfaces for different form elements. Files like 'config-pl' and 'config-en' contains attribute configurations in English and Polish.
Creating Form Elements
The 'form-element-creator' contains strategies for creating individual form elements. They are created by configurations provided in the 'config-attributes' files.
Technologies Used
The project uses the following technologies: TypeScript, HTML, CSS.