Show / Hide Table of Contents

    Class ValidationSummaryHelper

    Transforms a given tag into a dismissable alert message with all corresponding errors listed in an unordered list. Existing content is kept. If the model has no validation errors, output of the whole tag is completely suppressed.
    Inheritance
    Microsoft.AspNetCore.Razor.TagHelpers.TagHelper
    ValidationSummaryHelper
    Namespace: XploRe.AspNetCore.Mvc.TagHelpers.Bootstrap4
    Assembly: XploRe.AspNetCore.Mvc.TagHelpers.Bootstrap4.dll
    Syntax
    public class ValidationSummaryHelper : TagHelper

    Constructors

    Name Description
    ValidationSummaryHelper(IHtmlGenerator) Initialises a new ValidationSummaryHelper instance.

    Properties

    Name Description
    FontAwesomeCloseIcon Uses the specified Font Awesome icon (without fa- prefix) instead of the default times ("x") icon.
    Generator The cached Microsoft.AspNetCore.Mvc.ViewFeatures.IHtmlGenerator service instance.
    ValidationSummary A validation summary is appended if either Microsoft.AspNetCore.Mvc.Rendering.ValidationSummary.All (includes properties) or Microsoft.AspNetCore.Mvc.Rendering.ValidationSummary.ModelOnly (excludes properties) is set.
    ViewContext The automatically assigned ViewContext instance.

    Methods

    Name Description
    Process(TagHelperContext, TagHelperOutput)
    Back to top Copyright © 2017-2018, xplo.re IT Services, Michael Maier. All rights reserved.