Click or drag to resize
IKenticoFormWidgetServiceGetViewModel Method
Gets view model for rendering the form widget's partial view.

Namespace: Kentico.Forms.Web.Mvc.Widgets.Internal
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
FormWidgetViewModel GetViewModel(
	ComponentViewModel<FormWidgetProperties> componentModel,
	ViewDataDictionary viewData
)

Parameters

componentModel
Type: Kentico.PageBuilder.Web.MvcComponentViewModelFormWidgetProperties
General view model for rendering a component with FormWidgetProperties.
viewData
Type: ViewDataDictionary
View data of the current context.

Return Value

Type: FormWidgetViewModel
See Also