Class ChameleonFormsConfigBuilder<TFormTemplate>
Provides a fluent builder syntax to configure Chameleon Forms.
Inheritance
Inherited Members
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 SourceWithHumanizedLabelTransformer(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 SourceWithoutDateTimeBinding()
Turn off model binding of System.DateTimes.
Declaration
public ChameleonFormsConfigBuilder<TFormTemplate> WithoutDateTimeBinding()
Returns
Type | Description |
---|---|
ChameleonFormsConfigBuilder<TFormTemplate> | The builder to allow fluent method chaining |
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 |
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 |
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 |
WithoutHumanizedLabels()
Turn off humanized labels.
Declaration
public ChameleonFormsConfigBuilder<TFormTemplate> WithoutHumanizedLabels()
Returns
Type | Description |
---|---|
ChameleonFormsConfigBuilder<TFormTemplate> | The builder to allow fluent method chaining |
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 |
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 |
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 |