Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

IWidgetPlugin.cs

using Nop.Services.Plugins;

namespace Nop.Services.Cms;

/// 
/// Provides an interface for creating widgets
/// 
public partial interface IWidgetPlugin : IPlugin
{
    /// 
    /// Gets a value indicating whether to hide this plugin on the widget list page in the admin area
    /// 
    bool HideInWidgetList { get; }

    /// 
    /// Gets widget zones where this widget should be rendered
    /// 
    /// 
    /// A task that represents the asynchronous operation
    /// The task result contains the widget zones
    /// 
    Task> GetWidgetZonesAsync();

    /// 
    /// Gets a type of a view component for displaying widget
    /// 
    /// Name of the widget zone
    /// View component type
    Type GetWidgetViewComponent(string widgetZone);
}