You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
abp/docs/en/UI/Blazor/Global-Features.md

25 lines
702 B

# Blazor UI: Global Features
`GlobalFeatureManager` allows you to check the global features in your Blazor applications.
## Usage
```html
@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](../../Global-Features.md) to check global features in your C# code.