Blazor UI: Global Features
GlobalFeatureManager
allows you to check the global features in your Blazor applications.
Usage
- You can follow Check for a Global Feature section of the Global Features document to check global features in your C# code.
No results found!
Some parts of this topic may be machine translated.
GlobalFeatureManager
allows you to check the global features in your Blazor applications.
@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>
}
Please note that although we cannot respond to feedback, our team will use your comments to improve the experience.