Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 702 Bytes

Global-Features.md

File metadata and controls

25 lines (18 loc) · 702 Bytes

Blazor UI: Global Features

GlobalFeatureManager allows you to check the global features in your Blazor applications.

Usage

@using Volo.Abp.GlobalFeatures

@* ... *@

@* Global Feature can be checked with feature name *@
@if(GlobalFeatureManager.Instance.IsEnabled("Ecommerce.Subscription"))
{
    <span>Ecommerce.Subscription is enabled.</span>
}

@* OR it can be checked with type *@

@if(GlobalFeatureManager.Instance.IsEnabled<EcommerceSubscriptionGlobalFeature>())
{
    <span>Ecommerce.Subscription is enabled.</span>
}
  • You can follow Check for a Global Feature section of the Global Features document to check global features in your C# code.