The GenericInputField UDR
is used to create other types of input.
To create a date input picker the GenericInputField can be used like this:
GenericInputField dateField = udrCreate(GenericInputField); dateField.name = "date"; dateField.type = "date"; dateField.label = "A GenericInput";
The following fields are included in the GenericInputField UDR
:
Field | Description |
---|---|
attributes (map<string,string>) | This field may contain extra attributes to be added. |
cssClasses (list<string>) | This field may contain a list of extra values added to class attribute. This is typically used to style the component. Please read more on Bootstrap. |
disabled (boolean) | This field may contain a boolean if the component should be disabled or enabled. |
id (string) | This field may contain the id of the component |
label (string) | This field may contain the label for the generic input field. |
labelCssClasses (list<string>) | This field may contain a list of extra values added to class attribute of the label. This is typically used to style the component. Please read more on Bootstrap. |
name (string) | This field may contain the name of the component. This field may contain the name of the component. If the component is present in a Form UDR, the name will be submitted with the form as the key in the Params Map in Request UDR. |
placeholder (string) | This field may contain a text that can be used as a help text. |
readonly (boolean) | This field may contain a boolean if the field is readonly. |
required (boolean) | This field may contain a boolean if the component is required. Typically used inside a Form UDR. |
type (string) | This field contain the input type. For example: date, file, email… |
value (int) | This field may contain a value. |
Add Comment