Class MaskField
Represents a field for inputting content with a mask.
public class MaskField : TrinityField<MaskField, string>, ITrinityComponent, ITrinityField, IFormComponent
- Inheritance
-
MaskField
- Implements
- Inherited Members
Constructors
MaskField(string)
public MaskField(string columnName)
Parameters
columnName
string
Properties
AutoClear
Gets or sets a value indicating whether the field should be automatically cleared when focused and unfocused.
public bool AutoClear { get; protected set; }
Property Value
ComponentName
The component name in the front-end side.
public override string ComponentName { get; }
Property Value
InputMask
Gets or sets the input mask for the field.
public string? InputMask { get; protected set; }
Property Value
SlotChar
Gets or sets the slot character for the field.
public char? SlotChar { get; protected set; }
Property Value
- char?
Methods
SetInputMask(string, char?, bool)
Sets the input mask, slot character, and auto clear value of the field and returns the instance of the MaskField class.
public MaskField SetInputMask(string mask, char? slotChar = null, bool autoClear = false)
Parameters
mask
stringThe input mask of the field.
slotChar
char?The slot character of the field.
autoClear
boolA value indicating whether the field should be automatically cleared when focused and unfocused.