"min"

Defines the minimum value that can be entered in a text field.

Synopsis

setValue(string shape, "min", anytype limit);

getValue(string shape, "min", anytype limit);

shape.min( anytype limit);

Parameters

Parameter Description
shape Name of the object
limit The minimum value

Description

The attribute "Max" sets the minimum value that can be entered in a text field.

Example

The following example sets the minimum value to -5. In this case, after entering "-" the digits from 6 to 9 are blocked and won't be accepted by the text field.

It is to consider that, when using a minimum value of e.g. 10, the values from 0 to 9 can still be used and must be handled manually. This restriction is due to the fact that a inserted value higher than the minimum value e.g. 90 would be blocked, if the values 0 to 9 could not be entered.

main()
{
  this.min(-5);
}
main()
{
  setValue("", "min", -5);
}

Assignment

Text field