Class DashboardWidgetHelper
- Namespace
- Dynamicweb.Dashboard.Widgets
- Assembly
- Dynamicweb.Core.dll
Contains helper methods to work with widgets
public static class DashboardWidgetHelper
- Inheritance
-
DashboardWidgetHelper
- Inherited Members
Methods
Create(Type)
Creates the AddIn instance.
public static DashboardWidget? Create(Type widgetType)
Parameters
widgetType
TypeType of the AddIn.
Returns
GetAllWidgetsTypes()
Gets the all widgets AddIn's classes.
public static IEnumerable<Type> GetAllWidgetsTypes()
Returns
GetDescription(Type)
Gets the AddIn description attribute.
public static string GetDescription(Type type)
Parameters
type
TypeThe widget type
Returns
GetIcon(Type, KnownIcon)
Gets the AddIn icon attribute.
public static KnownIcon GetIcon(Type type, KnownIcon defaultIcon)
Parameters
Returns
GetName(DashboardWidget)
Gets widget friendly name.
public static string GetName(DashboardWidget widget)
Parameters
widget
DashboardWidgetThe widget
Returns
GetName(Type, string)
Gets widget type friendly name or default.
public static string GetName(Type type, string defaultName)
Parameters
Returns
GetParametersCount(DashboardWidget)
Gets widget AddIn parameters count
public static int GetParametersCount(DashboardWidget widget)
Parameters
widget
DashboardWidget
Returns
GetSystemName(Type)
Gets widget system name used as unique id
public static string GetSystemName(Type type)
Parameters
type
TypeThe widget type