IntegerField UDR(3.3)

The IntegerField UDR is used to create an input field that only accepts Integers.

To create an integer field that only accepts even numbers between 0 - 100 this code can be used.

IntegerField num = udrCreate(IntegerField); num.label = "Even Numbers"; num.step = 2; num.min = 0; num.max = 100;

The following fields are included in the IntegerField UDR:

Field

Description

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 integer 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.

max (int)

This field may contain a max value.

min (int)

This field may contain a min value.

name (string)

This field may contain the name of the component. If the component is present in a Form UDR(3.3), the name will be submitted with the form as the key in the Params Map in Request UDR(3.3).

placeholder (string)

This field may contain a placeholder 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.

step (int)

This field may contain a value to specifies the legal number intervals

value (int)

This field may contain a value.