Interface IForm
Interface for a modeless cast of a Chameleon Form.
Namespace: ChameleonForms
Assembly: ChameleonForms.dll
Syntax
public interface IFormMethods
| Improve this Doc View SourceCreatePartialForm<TPartialModel>(LambdaExpression, IHtmlHelper<TPartialModel>)
Returns a wrapped ChameleonForms.PartialViewForm`2 for the given partial view information.
Declaration
IForm<TPartialModel> CreatePartialForm<TPartialModel>(LambdaExpression partialModelExpression, IHtmlHelper<TPartialModel> partialViewHelper)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Linq.Expressions.LambdaExpression | partialModelExpression | The expression that identifies the partial model | 
| Microsoft.AspNetCore.Mvc.Rendering.IHtmlHelper<TPartialModel> | partialViewHelper | The HTML Helper from the partial view | 
Returns
| Type | Description | 
|---|---|
| IForm<TPartialModel> | The PartialViewForm wrapping the original form | 
Type Parameters
| Name | Description | 
|---|---|
| TPartialModel | The model type of the partial view |