Is it possible to set the mask of a devextreme textbox field to a model's property? As in bind the mask property to a model's property value?
For example:
Model:
public MyClass{
public string PhoneNumber{get; set;}
public string PhoneMask{get; set; } = "+1 (999) 000-0000";
}
View:
@(Html.DevExtreme().TextBox()
// .Mask("+1 (X00) 000-0000")
.Mask(Model.PhoneMask)
.Value(Model.PhoneNumber)
.InputAttr("aria-label", "Mask")
)