DashboardElementWidget Class | 
Namespace: Dynamicweb.Dashboards.Widgets
The DashboardElementWidget type exposes the following members.
| Name | Description | |
|---|---|---|
| DashboardElementWidget | Initializes a new instance of the DashboardElementWidget class  | 
| Name | Description | |
|---|---|---|
| Columns | 
            Gets or sets widget size
              (Inherited from DashboardWidget.) | |
| CreatedDate | 
            Gets the created date and time.
              (Inherited from DashboardWidget.) | |
| Element | 
            The  to be shown
              | |
| Id | 
            Gets widget Id
              (Inherited from DashboardWidget.) | |
| ModifiedDate | 
            Gets the last modified date and time.
              (Inherited from DashboardWidget.) | |
| Order | 
            Gets or sets widget order
              (Inherited from DashboardWidget.) | |
| ShowTitle | 
            Gets or sets value indicating whether to show widget title.
              (Inherited from DashboardWidget.) | |
| Title | 
            Gets or sets widget title
              (Inherited from DashboardWidget.) | |
| TitleAction | 
            Gets or sets widget title action
              (Inherited from DashboardWidget.) | 
| Name | Description | |
|---|---|---|
| Fetch | 
            Fetches widget data from storage
              (Inherited from DashboardWidget.) | |
| GetIdSuitableString | (Inherited from ConfigurableAddIn.) | |
| GetOptions | 
            Return dropdown options
              (Inherited from DashboardWidget.) | |
| GetParametersToXml | (Inherited from ConfigurableAddIn.) | |
| GetParametersToXml(Boolean) | (Inherited from ConfigurableAddIn.) | |
| LoadParametersFromXml | (Inherited from ConfigurableAddIn.) | |
| Render | 
            The method render widget and return html
              (Overrides DashboardWidgetRender.) | |
| RenderAdditionalContent | (Inherited from ConfigurableAddIn.) | |
| ScriptDependencies | 
            Specifies relative paths to all script files that this widget is dependent upon.
              (Inherited from DashboardWidget.) | |
| SetValue | (Inherited from ConfigurableAddIn.) | |
| StylesheetDependencies | 
            Specifies relative paths to all style files that this widget is dependent upon.
              (Inherited from DashboardWidget.) | |
| UpdateFromPost | (Inherited from ConfigurableAddIn.) | 
using Dynamicweb.Dashboards.Widgets; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Dynamicweb.UI.Elements.Displays.Charts; using Dynamicweb.Extensibility.AddIns; namespace Dynamicweb.Dashboards.Examples { [AddInName("Simple your site under attack")] [AddInDescription("Show site under attack alarm")] [AddInIcon(Core.UI.Icons.KnownIcon.Beer)] public sealed class SimpleElementWidget : DashboardElementWidget { public SimpleElementWidget() { } public override void Fetch(IDashboard dashboard, string path) { var infoBar = new UI.Elements.Displays.Infobar(); infoBar.Message = "Your site under attack"; infoBar.MessageType = UI.Elements.Displays.MessageType.Error; Element = infoBar; } } }