ComponentViewModelCreate Method |
Namespace: Kentico.PageBuilder.Web.MvcAssembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax 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:
ComponentViewModelRemarks
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