Skip to content

MaskedEditorAttribute class

namespace: Serenity.ComponentModel   assemblySerenity.Net.Core

Indicates that the target property should use a "Masked" editor. Note that this requires https://www.npmjs.com/package/jquery.maskedinput, e.g. jquery.maskedinput.js which can be installed via libman or npm, and referenced in your scripts (via appsettings.bundles.json).

[AttributeUsage(AttributeTargets.All)]
public class MaskedEditorAttribute : CustomEditorAttribute

Public Members

name description
MaskedEditorAttribute() Initializes a new instance of the MaskedEditorAttribute class.
Mask { get; set; } Gets or sets the mask. a = letter, 9 = numeric, * = alphanumeric.
Placeholder { get; set; } Gets or sets the placeholder.
const Key Editor type key

See Also