mirror of https://github.com/abpframework/abp.git
4 changed files with 32 additions and 16 deletions
@ -0,0 +1,3 @@ |
|||
# Angular UI: Settings |
|||
|
|||
> This document explains how to get setting values in an Angular application. See the [settings document](../../Settings.md) to learn the setting system. |
|||
@ -0,0 +1,19 @@ |
|||
# ASP.NET Core MVC / Razor Pages UI: JavaScript Setting API |
|||
|
|||
Localization API allows you to get the values of the settings on the client side. You can read the current value of a setting in the client side only if it is allowed by the setting definition (on the server side). |
|||
|
|||
> This document only explains the JavaScript API. See the [settings document](../../../Settings.md) to understand the ABP setting system. |
|||
|
|||
## Basic Usage |
|||
|
|||
````js |
|||
//Gets a value as string. |
|||
var language = abp.setting.get('Abp.Localization.DefaultLanguage'); |
|||
|
|||
//Gets an integer value. |
|||
var requiredLength = abp.setting.getInt('Abp.Identity.Password.RequiredLength'); |
|||
|
|||
//Gets a boolean value. |
|||
var requireDigit = abp.setting.getBoolean('Abp.Identity.Password.RequireDigit'); |
|||
```` |
|||
|
|||
@ -0,0 +1,3 @@ |
|||
# Blazor UI: Settings |
|||
|
|||
Blazor applications can reuse the same `ISettingProvider` service that is explained in the [settings document](../../Settings.md). |
|||
Loading…
Reference in new issue