Hide

YetaWF Documentation

Display
Print

IntValue2 Component

IntValue2 (Display)

Displays the specified value formatted as an integer value. Should be used for up to 2 digits. If the specified value is null, nothing is rendered.

Model Type: int?

[Caption("Average Char. Width"), Description("The average character width, calculated using the current skin")]
[UIHint("IntValue2"), ReadOnly]
public int Width { get; set; }

IntValue2 (Edit)

Allows entry of an integer value. Should be used for up to 2 digits.

Model Type: int?

The RangeAttribute can be used to define the lowest and highest allowable values.

AdditionalMetadata Attributes

NameTypeDefaultDescription
Stepint1The increment/decrement used when clicking on the up/down arrows of the edit control.
NoEntrystringnullThe specified string is displayed as long as there is no value entered.
[Caption("Days"), Description("The number of days a backup is saved - once a backup has been saved for the specified number of days, it is deleted")]
 [UIHint("IntValue2"), Range(1, 99), Required]
 public int Days { get; set; }