MindFusion.Charting for JavaScript Programmer's Guide
Locale.fromJson Method
See Also
 






Deserializes the locale from a JSON string.

Namespace: MindFusion.Common
File: Locale.js

 Syntax

JavaScript  Copy Code

function fromJson (dateSettingsJson)

 Parameters

dateSettingsJson

Type: String
String. A string containing data for the date settings.

 Example

The following code creates a new Locale instance and loads its settings from a json file.

JavaScript  Copy Code
calendar.locale = Locale.fromJson("locale.json");

 See Also

Locale Members
Locale Class
MindFusion.Common Namespace