mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Needed to have a nice structured cookbook dir in the docs Includes: Move the data-module tests under the data dir Move the frame tests under the ui dir Rename the dialog.md file to dialogs.md Fix the web-view title Add previous_url attributes to each article for SEO Rename the style dir to styling to match the reference Fix the frame-tests path
1.4 KiB
1.4 KiB
nav-title, title, description, previous_url
| nav-title | title | description | previous_url |
|---|---|---|---|
| application-settings How-To | application-settings | Examples for using application-settings | /ApiReference/application-settings/HOW-TO |
Application Settings
Using application settings methods requires to load "application settings" module.
Working with string, number and boolean values
Set and get boolean value and provide default value in case it is not set
Set and get string value
Set and get numeric value.
We use toFixed() here in order to avoid floating point errors - ex: 54.321 becoming 54.320999999537.
Beware the result of toFixed() is a string not a number therefore you cannot use === or !== when comparing with a number.