Show / Hide Table of Contents

    Interface IFieldGenerator<TModel, T>

    Generates the HTML for a single form field.

    Inherited Members
    IFieldGenerator.Metadata
    IFieldGenerator.Template
    IFieldGenerator.PrepareFieldConfiguration(IFieldConfiguration, FieldParent)
    IFieldGenerator.GetFieldHtml(IReadonlyFieldConfiguration)
    IFieldGenerator.GetLabelHtml(IReadonlyFieldConfiguration)
    IFieldGenerator.GetValidationHtml(IReadonlyFieldConfiguration)
    IFieldGenerator.GetFieldHtml(IFieldConfiguration)
    IFieldGenerator.GetLabelHtml(IFieldConfiguration)
    IFieldGenerator.GetValidationHtml(IFieldConfiguration)
    IFieldGenerator.GetFieldId()
    Namespace: ChameleonForms.FieldGenerators
    Assembly: ChameleonForms.Core.dll
    Syntax
    public interface IFieldGenerator<TModel, T> : IFieldGenerator
    Type Parameters
    Name Description
    TModel
    T

    Properties

    | Improve this Doc View Source

    FieldProperty

    The expression that identifies the property in the model being output.

    Declaration
    Expression<Func<TModel, T>> FieldProperty { get; }
    Property Value
    Type Description
    System.Linq.Expressions.Expression<System.Func<TModel, T>>
    | Improve this Doc View Source

    HtmlHelper

    A HTML helper for the model.

    Declaration
    IHtmlHelper<TModel> HtmlHelper { get; }
    Property Value
    Type Description
    Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<TModel>

    Methods

    | Improve this Doc View Source

    GetCustomAttributes()

    Returns any custom attributes against the field being generated.

    Declaration
    IEnumerable<Attribute> GetCustomAttributes()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<System.Attribute>

    The attributes

    | Improve this Doc View Source

    GetFieldDisplayName()

    Returns the displayable name of the field being generated.

    Declaration
    string GetFieldDisplayName()
    Returns
    Type Description
    System.String

    The id

    | Improve this Doc View Source

    GetModel()

    Returns a model with the current values for the form.

    Declaration
    TModel GetModel()
    Returns
    Type Description
    TModel

    The current model

    | Improve this Doc View Source

    GetValue()

    Returns the current value of the field.

    Declaration
    T GetValue()
    Returns
    Type Description
    T

    The current field value

    Extension Methods

    HtmlAttributesExtensions.ToHtmlAttributes(Object)
    FieldGeneratorExtensions.HasMultipleValues<TModel, T>(IFieldGenerator<TModel, T>)
    FieldGeneratorExtensions.HasMultipleEnumValues<TModel, T>(IFieldGenerator<TModel, T>)
    FieldGeneratorExtensions.HasEnumerableValues<TModel, T>(IFieldGenerator<TModel, T>)
    FieldGeneratorExtensions.GetEnumerableValues<TModel, T>(IFieldGenerator<TModel, T>)
    FieldGeneratorExtensions.IsSelected<TModel, T>(IFieldGenerator<TModel, T>, Object)
    FieldGeneratorExtensions.GetUnderlyingType<TModel, T>(IFieldGenerator<TModel, T>)
    FieldGeneratorExtensions.IsNumeric<TModel, T>(IFieldGenerator<TModel, T>)
    FieldGeneratorExtensions.IsIntegralNumber<TModel, T>(IFieldGenerator<TModel, T>)
    FieldGeneratorExtensions.IsFloatingNumber<TModel, T>(IFieldGenerator<TModel, T>)
    • Improve this Doc
    • View Source
    Back to top © Copyright 2012-2020 MRCollective, Rob Moore, Matt Davies and the contributors to ChameleonForms.