Show / Hide Table of Contents

    Class ChameleonFormsConfigBuilder<TFormTemplate>

    Provides a fluent builder syntax to configure Chameleon Forms.

    Inheritance
    System.Object
    ChameleonFormsConfigBuilder<TFormTemplate>
    Inherited Members
    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.Config
    Assembly: ChameleonForms.dll
    Syntax
    public class ChameleonFormsConfigBuilder<TFormTemplate>
        where TFormTemplate : IFormTemplate
    Type Parameters
    Name Description
    TFormTemplate

    The template type to use

    Methods

    | Improve this Doc View Source

    WithHumanizedLabelTransformer(IStringTransformer)

    Humanize labels with the given transformer. Use Humanizer.To to access the default Humanizer ones.

    Declaration
    public ChameleonFormsConfigBuilder<TFormTemplate> WithHumanizedLabelTransformer(IStringTransformer transformer)
    Parameters
    Type Name Description
    Humanizer.IStringTransformer transformer
    Returns
    Type Description
    ChameleonFormsConfigBuilder<TFormTemplate>

    The builder to allow fluent method chaining

    Examples

    builder.WithHumanizedLabelTransformer(To.TitleCase)

    | Improve this Doc View Source

    WithoutDateTimeBinding()

    Turn off model binding of System.DateTimes.

    Declaration
    public ChameleonFormsConfigBuilder<TFormTemplate> WithoutDateTimeBinding()
    Returns
    Type Description
    ChameleonFormsConfigBuilder<TFormTemplate>

    The builder to allow fluent method chaining

    | Improve this Doc View Source

    WithoutDateTimeClientModelValidation()

    Turn off client model validation of System.DateTimes.

    Declaration
    public ChameleonFormsConfigBuilder<TFormTemplate> WithoutDateTimeClientModelValidation()
    Returns
    Type Description
    ChameleonFormsConfigBuilder<TFormTemplate>

    The builder to allow fluent method chaining

    | Improve this Doc View Source

    WithoutEnumListBinding()

    Turn off model binding of enum lists.

    Declaration
    public ChameleonFormsConfigBuilder<TFormTemplate> WithoutEnumListBinding()
    Returns
    Type Description
    ChameleonFormsConfigBuilder<TFormTemplate>

    The builder to allow fluent method chaining

    | Improve this Doc View Source

    WithoutFlagsEnumBinding()

    Turn off model binding of flag enums.

    Declaration
    public ChameleonFormsConfigBuilder<TFormTemplate> WithoutFlagsEnumBinding()
    Returns
    Type Description
    ChameleonFormsConfigBuilder<TFormTemplate>

    The builder to allow fluent method chaining

    | Improve this Doc View Source

    WithoutHumanizedLabels()

    Turn off humanized labels.

    Declaration
    public ChameleonFormsConfigBuilder<TFormTemplate> WithoutHumanizedLabels()
    Returns
    Type Description
    ChameleonFormsConfigBuilder<TFormTemplate>

    The builder to allow fluent method chaining

    | Improve this Doc View Source

    WithoutIntegralClientModelValidation()

    Turn off client model validation of integral numerics.

    Declaration
    public ChameleonFormsConfigBuilder<TFormTemplate> WithoutIntegralClientModelValidation()
    Returns
    Type Description
    ChameleonFormsConfigBuilder<TFormTemplate>

    The builder to allow fluent method chaining

    | Improve this Doc View Source

    WithoutTemplateTypeRegistration()

    Don't register the template type with the Microsoft.Extensions.DependencyInjection.ServiceCollection.

    Declaration
    public ChameleonFormsConfigBuilder<TFormTemplate> WithoutTemplateTypeRegistration()
    Returns
    Type Description
    ChameleonFormsConfigBuilder<TFormTemplate>

    The builder to allow fluent method chaining

    | Improve this Doc View Source

    WithoutUriBinding()

    Turn off model binding of System.Uris.

    Declaration
    public ChameleonFormsConfigBuilder<TFormTemplate> WithoutUriBinding()
    Returns
    Type Description
    ChameleonFormsConfigBuilder<TFormTemplate>

    The builder to allow fluent method chaining

    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.