For developers: Override the AddViews method
To specify the views you want to display in your designer, perform the following:
- Override the AddViews method of the base class in the following way:
public class RotatorDesigner1 : ContentViewDesignerBase
{
protected override void AddViews(Dictionary<
string
, ControlDesignerView> views)
{
}
}
- Add the views to the views argument it receives in the following way:
public class RotatorDesigner1 : ContentViewDesignerBase
{
protected override void AddViews(Dictionary<
string
, ControlDesignerView> views)
{
views.Add("View1", new DesignerView1());
}
}
EXAMPLE:For more information about how to reference the client script by overriding the GetScriptReferences method, see For developers: Full code of the widget designer class.