Browse Source

Document how to check global features in MVC UI.

pull/12553/head
maliming 4 years ago
parent
commit
2fbdbf9513
No known key found for this signature in database GPG Key ID: 96224957E51C89E
  1. 21
      docs/en/UI/AspNetCore/JavaScript-API/GlobalFeatures.md
  2. 1
      docs/en/UI/AspNetCore/JavaScript-API/Index.md

21
docs/en/UI/AspNetCore/JavaScript-API/GlobalFeatures.md

@ -0,0 +1,21 @@
# 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](../../../Global-Features.md) in the client side.
> This document only explains the JavaScript API. See the [Global Features](../../../Global-Features.md) document to understand the ABP Global Features system.
## Usage
````js
> abp.globalFeatures.enabledFeatures
[ 'Shopping.Payment', 'Ecommerce.Subscription' ]
> abp.globalFeatures.moduleEnabledFeatures
{ Ecommerce }
> abp.globalFeatures.moduleEnabledFeatures.Ecommerce
[ 'Ecommerce.Subscription', 'Ecommerce.Invoice' ]
````

1
docs/en/UI/AspNetCore/JavaScript-API/Index.md

@ -10,6 +10,7 @@ ABP provides a set of JavaScript APIs for ASP.NET Core MVC / Razor Pages applica
* [DOM](DOM.md)
* [Events](Events.md)
* [Features](Features.md)
* [Global Features](GlobalFeatures.md)
* [Localization](Localization.md)
* [Logging](Logging.md)
* [ResourceLoader](ResourceLoader.md)

Loading…
Cancel
Save