Deserializes the locale from a JSON string.
Namespace: MindFusion.Common
File: Locale.js
JavaScript Copy Code |
---|
function fromJson (dateSettingsJson) |
Type: String
String. A string containing data for the date settings.
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"); |