Show / Hide Table of Contents

    Interface ISection

    Interface for a modeless cast of a ChameleonForms Section.

    Namespace: ChameleonForms.Component
    Assembly: ChameleonForms.dll
    Syntax
    public interface ISection

    Methods

    | Improve this Doc View Source

    CreatePartialSection<TPartialModel>(IForm<TPartialModel>)

    Returns a section with the same characteristics as the current section, but using the given partial form.

    Declaration
    ISection<TPartialModel> CreatePartialSection<TPartialModel>(IForm<TPartialModel> partialModelForm)
    Parameters
    Type Name Description
    IForm<TPartialModel> partialModelForm
    Returns
    Type Description
    ISection<TPartialModel>

    A section with the same characteristics as the current section, but using the given partial form

    Type Parameters
    Name Description
    TPartialModel

    The model type of the partial view

    | Improve this Doc View Source

    Field(IHtmlContent, IHtmlContent, IHtmlContent, ModelMetadata, Boolean, IFieldConfiguration)

    Outputs a field with passed in HTML.

    Declaration
    IFieldConfiguration Field(IHtmlContent labelHtml, IHtmlContent elementHtml, IHtmlContent validationHtml = null, ModelMetadata metadata = null, bool isValid = true, IFieldConfiguration fieldConfiguration = null)
    Parameters
    Type Name Description
    Microsoft.AspNetCore.Html.IHtmlContent labelHtml

    The HTML for the label part of the field

    Microsoft.AspNetCore.Html.IHtmlContent elementHtml

    The HTML for the field element part of the field

    Microsoft.AspNetCore.Html.IHtmlContent validationHtml

    The HTML for the validation markup part of the field

    Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata

    Any field metadata

    System.Boolean isValid

    Whether or not the field is valid

    IFieldConfiguration fieldConfiguration

    Optional field configuration

    Returns
    Type Description
    IFieldConfiguration

    A field configuration that can be used to output the field as well as configure it fluently

    Extension Methods

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