Click or drag to resize
RegisterWidgetAttribute Constructor (String, Type, String)
Creates an instance of the RegisterWidgetAttribute class.

Namespace: Kentico.PageBuilder.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
public RegisterWidgetAttribute(
	string identifier,
	Type controllerType,
	string name
)

Parameters

identifier
Type: SystemString
Unique identifier of the widget definition.
controllerType
Type: SystemType
Type of the widget controller to register.
name
Type: SystemString
Name of the registered widget.
Remarks
Make sure to provide unique identifier for the widget definition from the start. This identifier is used within the page configuration of widgets and any further change can lead to incorrect configuration load. Consider specifying identifier in format 'CompanyName.ModuleName.WidgetName', e.g. 'Kentico.Content.ArticlesListWidget'.
See Also