Search
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

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