BindAttributes Class

Definition

Infrastructure for the discovery of bind attributes for markup elements.

C#
[Microsoft.AspNetCore.Components.BindElement("select", null, "value", "onchange")]
[Microsoft.AspNetCore.Components.BindElement("textarea", null, "value", "onchange")]
[Microsoft.AspNetCore.Components.BindInputElement("checkbox", null, "checked", "onchange", false, null)]
[Microsoft.AspNetCore.Components.BindInputElement("date", "value", "value", "onchange", true, "yyyy-MM-dd")]
[Microsoft.AspNetCore.Components.BindInputElement("date", null, "value", "onchange", true, "yyyy-MM-dd")]
[Microsoft.AspNetCore.Components.BindInputElement("number", "value", "value", "onchange", true, null)]
[Microsoft.AspNetCore.Components.BindInputElement("number", null, "value", "onchange", true, null)]
[Microsoft.AspNetCore.Components.BindInputElement("text", null, "value", "onchange", false, null)]
[Microsoft.AspNetCore.Components.BindInputElement(null, "value", "value", "onchange", false, null)]
[Microsoft.AspNetCore.Components.BindInputElement(null, null, "value", "onchange", false, null)]
public static class BindAttributes
C#
[Microsoft.AspNetCore.Components.BindElement("select", null, "value", "onchange")]
[Microsoft.AspNetCore.Components.BindElement("textarea", null, "value", "onchange")]
[Microsoft.AspNetCore.Components.BindInputElement("checkbox", null, "checked", "onchange", false, null)]
[Microsoft.AspNetCore.Components.BindInputElement("date", "value", "value", "onchange", true, "yyyy-MM-dd")]
[Microsoft.AspNetCore.Components.BindInputElement("date", null, "value", "onchange", true, "yyyy-MM-dd")]
[Microsoft.AspNetCore.Components.BindInputElement("number", "value", "value", "onchange", true, null)]
[Microsoft.AspNetCore.Components.BindInputElement("number", null, "value", "onchange", true, null)]
[Microsoft.AspNetCore.Components.BindInputElement("text", null, "value", "onchange", false, null)]
[Microsoft.AspNetCore.Components.BindInputElement(null, "value", "value", "onchange", false, null)]
[Microsoft.AspNetCore.Components.BindInputElement(null, null, "value", "onchange", false, null)]
[Microsoft.AspNetCore.Components.BindInputElement("datetime-local", "value", "value", "onchange", true, "yyyy-MM-ddTHH:mm:ss")]
[Microsoft.AspNetCore.Components.BindInputElement("datetime-local", null, "value", "onchange", true, "yyyy-MM-ddTHH:mm:ss")]
[Microsoft.AspNetCore.Components.BindInputElement("month", "value", "value", "onchange", true, "yyyy-MM")]
[Microsoft.AspNetCore.Components.BindInputElement("month", null, "value", "onchange", true, "yyyy-MM")]
[Microsoft.AspNetCore.Components.BindInputElement("time", "value", "value", "onchange", true, "HH:mm:ss")]
[Microsoft.AspNetCore.Components.BindInputElement("time", null, "value", "onchange", true, "HH:mm:ss")]
public static class BindAttributes
Inheritance
BindAttributes
Attributes

Remarks

To extend the set of bind attributes, define a public class named BindAttributes and annotate it with the appropriate attributes.

Applies to

Product Versions
ASP.NET Core 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0