Show / Hide Table of Contents

    Class ButtonHtmlAttributes

    HtmlAttributes class that is returned from button methods that allows for extension methods targetted at buttons.

    Inheritance
    System.Object
    HtmlAttributes
    LazyHtmlAttributes
    ButtonHtmlAttributes
    Implements
    Microsoft.AspNetCore.Html.IHtmlContent
    Inherited Members
    LazyHtmlAttributes.WriteTo(TextWriter, HtmlEncoder)
    HtmlAttributes.Attributes
    HtmlAttributes.AddClass(String)
    HtmlAttributes.Id(String)
    HtmlAttributes.Disabled(Boolean)
    HtmlAttributes.Readonly(Boolean)
    HtmlAttributes.Required(Boolean)
    HtmlAttributes.Has(String)
    HtmlAttributes.Attr(String, Object)
    HtmlAttributes.Attr(Func<Object, Object>)
    HtmlAttributes.Attrs(Func<Object, Object>[])
    HtmlAttributes.Attrs(IDictionary<String, Object>)
    HtmlAttributes.Attrs(IDictionary<String, String>)
    HtmlAttributes.Attrs(Object)
    HtmlAttributes.ToDictionary()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: ChameleonForms.Component
    Assembly: ChameleonForms.Core.dll
    Syntax
    public class ButtonHtmlAttributes : LazyHtmlAttributes, IHtmlContent

    Constructors

    | Improve this Doc View Source

    ButtonHtmlAttributes(Func<HtmlAttributes, IHtmlContent>)

    Construct a ButtonHtmlAttributes class.

    Declaration
    public ButtonHtmlAttributes(Func<HtmlAttributes, IHtmlContent> htmlGenerator)
    Parameters
    Type Name Description
    System.Func<HtmlAttributes, Microsoft.AspNetCore.Html.IHtmlContent> htmlGenerator

    The generator to use to generate the HTML when .ToHtmlString() is called

    Implements

    Microsoft.AspNetCore.Html.IHtmlContent

    Extension Methods

    HtmlAttributesExtensions.ToHtmlAttributes(Object)
    HtmlContentExtensions.ToHtmlString(IHtmlContent)
    ButtonHtmlAttributesExtensions.WithIcon(ButtonHtmlAttributes, String)
    ButtonHtmlAttributesExtensions.WithStyle(ButtonHtmlAttributes, EmphasisStyle)
    ButtonHtmlAttributesExtensions.WithSize(ButtonHtmlAttributes, ButtonSize)
    • Improve this Doc
    • View Source
    Back to top © Copyright 2012-2020 MRCollective, Rob Moore, Matt Davies and the contributors to ChameleonForms.