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/AspNetCore/JavaScript-API/GlobalFeatures.md

675 B

ASP.NET Core MVC / Razor Pages UI: JavaScript Global Features API

abp.globalFeatures API allows you to get the enabled features of the Global Features in the client side.

This document only explains the JavaScript API. See the Global Features document to understand the ABP Global Features system.

Usage

//Gets all enabled global features.
> abp.globalFeatures.enabledFeatures

[ 'Shopping.Payment', 'Ecommerce.Subscription' ]


//Check the global feature is enabled
> abp.globalFeatures.isEnabled('Ecommerce.Subscription')

true

> abp.globalFeatures.isEnabled('My.Subscription')

false