Click or drag to resize
ComponentViewModelCreate Method
Creates a new instance of a ComponentViewModel.

Namespace: Kentico.PageBuilder.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
public static ComponentViewModel Create(
	TreeNode page
)

Parameters

page
Type: CMS.DocumentEngineTreeNode
Represents a document on which this view model is used for a Page builder component.

Return Value

Type: ComponentViewModel
Remarks
Method should be used in case of rendering a Page builder component with only the view. In that case by convention the view model of type ComponentViewModel is passed to the view.
See Also