Ends in:
0 DAY
18 HRS
58 MIN
14 SEC
Ends in:
0 D
18 H
58 M
14 S

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

abp.features API allows you to check features or get the values of the features on the client side. You can read the current value of a feature in the client side only if it is allowed by the feature definition (on the server side).

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

Basic Usage

//Gets a value as string.
var value = abp.features.get('ExportingToExcel');

//Check the feature is enabled
var enabled = abp.features.isEnabled('ExportingToExcel.Enabled');

All Values

abp.features.values can be used to access to the all feature values.

An example value of this object is shown below:

{
  Identity.TwoFactor: "Optional",
  ExportingToExcel.Enabled: "true",
  ...
}

Contributors


Last updated: July 31, 2024 Edit this page on GitHub

Was this page helpful?

Please make a selection.

To help us improve, please share your reason for the negative feedback in the field below.

Please enter a note.

Thank you for your valuable feedback!

Please note that although we cannot respond to feedback, our team will use your comments to improve the experience.

In this document
Community Talks

What’s New with .NET 9 & ABP 9?

21 Nov, 17:00
Online
Watch the Event
Mastering ABP Framework Book
Mastering ABP Framework

This book will help you gain a complete understanding of the framework and modern web application development techniques.

Learn More