ChameleonForms/Component/Section.cs
/// <summary>
/// Outputs a field with passed in HTML.
/// </summary>
/// <param name="labelHtml">The HTML for the label part of the field</param>
/// <param name="elementHtml">The HTML for the field element part of the field</param>
/// <param name="validationHtml">The HTML for the validation markup part of the field</param>
/// <param name="metadata">Any field metadata</param>
/// <param name="isValid">Whether or not the field is valid</param>
/// <returns>A field configuration that can be used to output the field as well as configure it fluently</returns>
Outputs a field with passed in HTML.
Outputs a field with passed in HTML .
public IFieldConfiguration Field(IHtmlString labelHtml, IHtmlString elementHtml, IHtmlString validationHtml = null, ModelMetadata metadata = null, bool isValid = true)
        {
            var fc = new FieldConfiguration();
            fc.SetField(() => Form.Template.Field(labelHtml, elementHtml, validationHtml, metadata, new ReadonlyFieldConfiguration(fc), isValid));
            return fc;
        }
public IFieldConfiguration Field ( IHtmlString labelHtml , IHtmlString elementHtml , IHtmlString validationHtml = null , ModelMetadata metadata = null , bool isValid = true ) { var fc = new FieldConfiguration ( ) ; fc . SetField ( ( ) => Form . Template . Field ( labelHtml , elementHtml , validationHtml , metadata , new ReadonlyFieldConfiguration ( fc ) , isValid ) ) ; return fc ; }
Outputs a field with passed in HTML.
Outputs a field with passed in HTML .
A field configuration that can be used to output the field as well as configure it fluently
A field configuration that can be used to output the field as well as configure it fluently
labelHtml
IHtmlString
The HTML for the label part of the field
The HTML for the label part of the field
elementHtml
IHtmlString
The HTML for the field element part of the field
The HTML for the field element part of the field
validationHtml
IHtmlString
The HTML for the validation markup part of the field
The HTML for the validation markup part of the field
metadata
ModelMetadata
Any field metadata
Any field metadata
isValid
bool
Whether or not the field is valid
Whether or not the field is valid