DataWeb
Search Results for

    Show / Hide Table of Contents

    Class WidgetGoalTrends

    Represents the WidgetGoalTrends class which extends the Widget class.

    Inheritance
    object
    Widget
    WidgetTrends
    WidgetGoalTrends
    Inherited Members
    WidgetTrends.GetDefaultSettingsAsync(Panel, IUser, CancellationToken)
    WidgetTrends.GetOptionsAsync(Panel, Dictionary<string, object>, IUser, CancellationToken)
    WidgetTrends.ValidateSettingsAsync(Panel, Dictionary<string, object>, Dictionary<string, object>, IUser, CancellationToken)
    WidgetTrends.UpdateSettingsAsync(Panel, Dictionary<string, object>, Dictionary<string, object>, IUser, CancellationToken)
    WidgetTrends.GetPeriodModes()
    WidgetTrends.GetPeriodData(string, DateTime?, DateTime?)
    WidgetTrends.GetStartOfWeek(DateTime, DayOfWeek)
    Widget.serviceProvider
    Widget.IdMaster
    Widget.Name
    Widget.Title
    Widget.Type
    Widget.Settings
    Widget.WidgetComponent
    Widget.WidgetClass
    Widget.VisibleRoles
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: DataWeb.Dashboard.Widgets
    Assembly: DataWeb.Core.dll
    Syntax
    public class WidgetGoalTrends : WidgetTrends

    Constructors

    WidgetGoalTrends(IServiceProvider)

    Represents the WidgetGoalTrends class which extends the Widget class.

    Declaration
    public WidgetGoalTrends(IServiceProvider serviceProvider)
    Parameters
    Type Name Description
    IServiceProvider serviceProvider

    Methods

    GetDataAsync(Panel, Dictionary<string, object>, IUser, CancellationToken)

    Gets the data for the widget.

    Declaration
    public override Task<WidgetContentData> GetDataAsync(Panel panel, Dictionary<string, object> widgetSettings, IUser user, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    Panel panel

    The Panel that the widget belongs to.

    Dictionary<string, object> widgetSettings

    The widget settings.

    IUser user

    The IUser who is viewing the widget.

    CancellationToken cancellationToken
    Returns
    Type Description
    Task<WidgetContentData>

    The widget data.

    Overrides
    WidgetTrends.GetDataAsync(Panel, Dictionary<string, object>, IUser, CancellationToken)

    GetGoalData(WidgetPeriodData, string, string, string, string, string, CancellationToken)

    Asynchronously retrieves goal data for a given period.

    Declaration
    public virtual Task<WidgetGoalTrends.GoalData> GetGoalData(WidgetTrends.WidgetPeriodData periodData, string chartType = "Bar", string goalName = null, string goalCategory = null, string goalReferenceId = null, string goalColor = "Blue", CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    WidgetTrends.WidgetPeriodData periodData

    The widget period data to base the goal data on.

    string chartType

    The type of chart to display (e.g., "Bar").

    string goalName

    The name of the goal to retrieve data for.

    string goalCategory

    The category of the goal to retrieve data for.

    string goalReferenceId

    The reference Id of the goal to retrieve data for.

    string goalColor

    The color of the goal data in the chart.

    CancellationToken cancellationToken
    Returns
    Type Description
    Task<WidgetGoalTrends.GoalData>

    The goal data.

    Extension Methods

    DashboardMapperExtension.ToDashboardWidgetInfo(Widget)
    In this article
    Back to top Generated by DocFX