FormContext
Assembly: ServiceStack.Razor.dll
View Source
Declaration
public class FormContext
Properties
FieldValidators
View Source
Declaration
public IDictionary<string, FieldValidationMetadata> FieldValidators { get; }
FormId
View Source
Declaration
public string FormId { get; set; }
ReplaceValidationSummary
View Source
Declaration
public bool ReplaceValidationSummary { get; set; }
ValidationSummaryId
View Source
Declaration
public string ValidationSummaryId { get; set; }
Methods
GetJsonValidationMetadata()
View Source
Declaration
public string GetJsonValidationMetadata()
Returns
System.String
GetValidationMetadataForField(String)
View Source
Declaration
public FieldValidationMetadata GetValidationMetadataForField(string fieldName)
Returns
ServiceStack.Html.FieldValidationMetadata
Parameters
Type | Name |
---|---|
System.String | fieldName |
GetValidationMetadataForField(String, Boolean)
View Source
Declaration
public FieldValidationMetadata GetValidationMetadataForField(string fieldName, bool createIfNotFound)
Returns
ServiceStack.Html.FieldValidationMetadata
Parameters
Type | Name |
---|---|
System.String | fieldName |
System.Boolean | createIfNotFound |
RenderedField(String)
View Source
Declaration
public bool RenderedField(string fieldName)
Returns
System.Boolean
Parameters
Type | Name |
---|---|
System.String | fieldName |
RenderedField(String, Boolean)
View Source
Declaration
public void RenderedField(string fieldName, bool value)
Parameters
Type | Name |
---|---|
System.String | fieldName |
System.Boolean | value |