Table of Contents

Class MaskField

Namespace
AbanoubNassem.Trinity.Fields
Assembly
AbanoubNassem.Trinity.dll

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

bool

ComponentName

The component name in the front-end side.

public override string ComponentName { get; }

Property Value

string

InputMask

Gets or sets the input mask for the field.

public string? InputMask { get; protected set; }

Property Value

string

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 string

The input mask of the field.

slotChar char?

The slot character of the field.

autoClear bool

A value indicating whether the field should be automatically cleared when focused and unfocused.

Returns

MaskField

The instance of the MaskField class.