Class MultiMask
- Namespace
- MudBlazor
- Assembly
- MudBlazor.dll
public class MultiMask : PatternMask, IMask
- Inheritance
-
MultiMask
- Implements
- Inherited Members
- Extension Methods
Constructors
MultiMask(string, params MaskOption[])
public MultiMask(string defaultMask, params MaskOption[] options)
Parameters
defaultMask
stringoptions
MaskOption[]
Properties
DetectedOption
public MaskOption? DetectedOption { get; }
Property Value
OptionDetected
public Action<MaskOption?, string> OptionDetected { get; set; }
Property Value
Methods
Backspace()
Implements the effect of the Backspace key at the current cursor position
public override void Backspace()
CheckOption()
protected virtual MaskOption? CheckOption()
Returns
Delete()
Implements the effect of the Del key at the current cursor position
public override void Delete()
DoCheckAndRedo(Action)
This is a nifty trick to avoid writing three times the same code for Insert, Delete and Backspace. This backs up the state. Executes the action, checks if option changed. If so, apply saved state and re-apply the action.
protected void DoCheckAndRedo(Action action)
Parameters
action
Action
Insert(string)
public override void Insert(string input)
Parameters
input
string
UpdateFrom(IMask)
public override void UpdateFrom(IMask other)
Parameters
other
IMask