Show / Hide Table of Contents

Class IgbMaskInput

A masked input is an input field where a developer can control user input and format the visible value, based on configurable rules

Inheritance
System.Object
BaseRendererControl
IgbInputBase
IgbMaskInputBase
IgbMaskInput
Implements
JsonSerializable
System.IDisposable
Inherited Members
IgbMaskInputBase.ReadOnly
IgbMaskInputBase.Mask
IgbMaskInputBase.Prompt
IgbInputBase.SetParametersAsync(ParameterView)
IgbInputBase.SetNativeElementAsync(Object)
IgbInputBase.SetNativeElement(Object)
IgbInputBase.SelectAsync()
IgbInputBase.Select()
IgbInputBase.FocusComponentAsync(IgbFocusOptions)
IgbInputBase.FocusComponent(IgbFocusOptions)
IgbInputBase.BlurComponentAsync()
IgbInputBase.BlurComponent()
IgbInputBase.ReportValidityAsync()
IgbInputBase.ReportValidity()
IgbInputBase.CheckValidityAsync()
IgbInputBase.CheckValidity()
IgbInputBase.SetCustomValidityAsync(String)
IgbInputBase.SetCustomValidity(String)
IgbInputBase.ValueChanging
IgbInputBase.DefaultEventBehavior
IgbInputBase.Outlined
IgbInputBase.Placeholder
IgbInputBase.Label
IgbInputBase.Disabled
IgbInputBase.Required
IgbInputBase.Invalid
IgbInputBase.InputOcurredScript
IgbInputBase.InputOcurred
IgbInputBase.FocusScript
IgbInputBase.Focus
IgbInputBase.BlurScript
IgbInputBase.Blur
BaseRendererControl.eventCallbacksCache
BaseRendererControl._cachedSerializedContent
BaseRendererControl.ResolveEventBehavior()
BaseRendererControl.ToSpinal(String)
BaseRendererControl.TransformSimpleKey(String)
BaseRendererControl.IsTransformedEnumValue(String)
BaseRendererControl.TransformPotentialEnumValue(String, Object)
BaseRendererControl.BuildSequenceInfo(Int32)
BaseRendererControl.BuildRenderTree(RenderTreeBuilder)
BaseRendererControl.TemplateContentType(String)
BaseRendererControl.OnAfterRenderAsync(Boolean)
BaseRendererControl.EnsureReady()
BaseRendererControl.MarkPropDirty(String)
BaseRendererControl.IsPropDirty(String)
BaseRendererControl.Serialize(SerializationContext, String)
BaseRendererControl.Serialize()
BaseRendererControl.InvokeMethod(String, Object[], String[], ElementReference[])
BaseRendererControl.InvokeMethodSync(String, Object[], String[], ElementReference[])
BaseRendererControl.SuspendNotifications(Object)
BaseRendererControl.ResumeNotifications(Object, Boolean)
BaseRendererControl.NotifyInsertItem(Object, Int32, Object)
BaseRendererControl.NotifyRemoveItem(Object, Int32, Object)
BaseRendererControl.NotifyClearItems(Object)
BaseRendererControl.NotifySetItem(Object, Int32, Object, Object)
BaseRendererControl.NotifyUpdateItem(Object, Int32, Object, Boolean)
BaseRendererControl.OnRefChanged(String, Object)
BaseRendererControl.OnInvokeReturn(Int64, Object)
BaseRendererControl.Camelize(String)
BaseRendererControl.ToPascal(String)
BaseRendererControl.OnElementNameChanged(BaseRendererElement, String, String)
BaseRendererControl.Dispose(Boolean)
BaseRendererControl.SetResourceStringAsync(String, String, String)
BaseRendererControl.SetResourceStringAsync(String, String)
BaseRendererControl.SetPropertyValue(Object, PropertyInfo, JsonElement)
BaseRendererControl.SetPropertyValue(Object, PropertyInfo, Object)
BaseRendererControl.CompareEventCallbacks<T>(T, T, Dictionary<Type, Dictionary<String, FieldInfo>>)
BaseRendererControl.Finalize()
BaseRendererControl.Dispose()
BaseRendererControl.IgBlazor
BaseRendererControl.Height
BaseRendererControl.Width
BaseRendererControl.Class
BaseRendererControl.AdditionalAttributes
BaseRendererControl.ParentTypeName
BaseRendererControl.EventBehavior
BaseRendererControl.ChildContent
BaseRendererControl.RoundTripDateConversion
BaseRendererControl.NeedsDynamicContent
BaseRendererControl.UseCamelEnumValues
Namespace: IgniteUI.Blazor.Controls
Assembly: IgniteUI.Blazor.dll
Syntax
public class IgbMaskInput : IgbMaskInputBase, RefSink, JsonSerializable, IDisposable

Constructors

IgbMaskInput()

Declaration
public IgbMaskInput()

Properties

Change

Declaration
public EventCallback<IgbComponentValueChangedEventArgs> Change { get; set; }
Property Value
Type Description
Microsoft.AspNetCore.Components.EventCallback<IgbComponentValueChangedEventArgs>

ChangeScript

Declaration
public string ChangeScript { get; set; }
Property Value
Type Description
System.String

DirectRenderElementName

Declaration
protected override string DirectRenderElementName { get; }
Property Value
Type Description
System.String
Overrides
IgbMaskInputBase.DirectRenderElementName

SupportsVisualChildren

Declaration
protected override bool SupportsVisualChildren { get; }
Property Value
Type Description
System.Boolean
Overrides
IgbMaskInputBase.SupportsVisualChildren

Type

Declaration
public override string Type { get; }
Property Value
Type Description
System.String
Overrides
IgbMaskInputBase.Type

UseDirectRender

Declaration
protected override bool UseDirectRender { get; }
Property Value
Type Description
System.Boolean
Overrides
IgbMaskInputBase.UseDirectRender

Value

The value of the input. Regardless of the currently set value-mode, an empty value will return an empty string.

Declaration
public string Value { get; set; }
Property Value
Type Description
System.String

ValueChanged

Declaration
public EventCallback<string> ValueChanged { get; set; }
Property Value
Type Description
Microsoft.AspNetCore.Components.EventCallback<System.String>

ValueMode

Dictates the behavior when retrieving the value of the control:

  • raw: Returns clean input (e.g. "5551234567")
  • withFormatting: Returns with mask formatting (e.g. "(555) 123-4567") Empty values always return an empty string, regardless of the value mode. @default 'raw'
Declaration
public MaskInputValueMode ValueMode { get; set; }
Property Value
Type Description
MaskInputValueMode

Methods

EnsureModulesLoaded()

Declaration
protected override void EnsureModulesLoaded()
Overrides
BaseRendererControl.EnsureModulesLoaded()

FindByName(String)

Declaration
public override object FindByName(string name)
Parameters
Type Name Description
System.String name
Returns
Type Description
System.Object
Overrides
IgbMaskInputBase.FindByName(String)

GetCurrentValue()

Declaration
public string GetCurrentValue()
Returns
Type Description
System.String

GetCurrentValueAsync()

Declaration
public Task<string> GetCurrentValueAsync()
Returns
Type Description
System.Threading.Tasks.Task<System.String>

ResolveDisplay()

Declaration
protected override string ResolveDisplay()
Returns
Type Description
System.String
Overrides
IgbMaskInputBase.ResolveDisplay()

Implements

JsonSerializable
System.IDisposable