0.1.0 • Published 9 months ago

ngx-ftx-forms v0.1.0

Weekly downloads
-
License
-
Repository
-
Last release
9 months ago

Structure of data

DataFormBuilder:
    - values :[
        -   label: string;
            value?: number | string | boolean;
            values?: SubSection[];
            validators?: Validator[];
            bulkValues?: NestedValue[];
            placeholder?: string;
            labelHint: string;
    ]
- labelHint are using in input type of text for mat-hint
- placeholder are using in input type of text for placeholder
- value are using in input to create single formControl
- values are using in input to create multiple formControl -> FormGroup
- validators are using to put validator
- bulkValues are using to create formArray

Validators :[
    - option :
        - /^\d+(\.\d+)?$/ Only number
        - /^[a-zA-Z\s]*$/ Only char
    - type: TypeConstantEnum
        - email
        - required
        - pattern TypePattern
        - min
    - errorMsg:
        - string "Msg what do you want to see in error workspace UI"
]

If you want to create a radio button

        "typeInput": 'toggle | boolean | text( default )'
0.1.0

9 months ago

0.0.4

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago