Show / Hide Table of Contents

    Namespace XploRe.AspNetCore.Mvc.TagHelpers.Bootstrap4

    Classes

    ValidationHelper

    Augments tags with bootstrap validation classes and messages if validation failed for the model field identified by the expression in the attribute bs-validation-for.

    For controls (input, textarea and select tags), the form-control and form-control-danger classes are added.

    If the tag has a form-group class set, the has-danger class is added. Otherwise, the form-control-feedback class is added and the tag content is set to the corresponding validation error message.

    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.
    Back to top Copyright © 2017-2018, xplo.re IT Services, Michael Maier. All rights reserved.