To Home

Documentation

Default Inputs Custom Inputs Nested Inputs Retrieving Form Data Styling

Default Inputs

The default inputs use the tag @FormInput(descriptor). The descriptor have the following fields.

class InputDescriptor {
    label: string;
    type?: string = 'text';
    styleClass?: any;
    required?: boolean;
    validators?: Validator[];
    errorMessage?: string;
}

Description

Here are the properties of the default fields.

Label

The decorator @Label(descriptor) is used to show text in the form. The label decorator accepts a InputDescriptor that you can use to configure the label.