Show / Hide Table of Contents

    Class LazyHtmlAttributes

    HtmlAttributes class that evaluates a given HTML generator when .ToHtmlString() is called.

    Inheritance
    System.Object
    HtmlAttributes
    LazyHtmlAttributes
    ButtonHtmlAttributes
    Implements
    Microsoft.AspNetCore.Html.IHtmlContent
    Inherited Members
    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
    Assembly: ChameleonForms.Core.dll
    Syntax
    public class LazyHtmlAttributes : HtmlAttributes, IHtmlContent

    Constructors

    | Improve this Doc View Source

    LazyHtmlAttributes(Func<HtmlAttributes, IHtmlContent>)

    Construct a LazyHtmlAttributes class.

    Declaration
    public LazyHtmlAttributes(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

    Methods

    | Improve this Doc View Source

    WriteTo(TextWriter, HtmlEncoder)

    Invokes the given HTML generator to return HTML.

    Declaration
    public override void WriteTo(TextWriter writer, HtmlEncoder encoder)
    Parameters
    Type Name Description
    System.IO.TextWriter writer
    System.Text.Encodings.Web.HtmlEncoder encoder
    Overrides
    HtmlAttributes.WriteTo(TextWriter, HtmlEncoder)

    Implements

    Microsoft.AspNetCore.Html.IHtmlContent

    Extension Methods

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