// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. namespace Microsoft.AspNetCore.Blazor.Components { /// /// Infrastructure for the discovery of bind attributes for markup elements. /// /// /// To extend the set of bind attributes, define a public class named /// BindAttributes and annotate it with the appropriate attributes. /// // Handles cases like - this is a fallback and will be ignored // when a specific type attribute is applied. [BindInputElement(null, null, "value", "onchange")] [BindInputElement("checkbox", null, "checked", "onchange")] [BindInputElement("text", null, "value", "onchange")] [BindElement("select", null, "value", "onchange")] [BindElement("textarea", null, "value", "onchange")] public static class BindAttributes { } }