Search
Locale.fromJson Method
See Also
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: None Language Filter: C# Language Filter: Visual Basic Language Filter: Java Language Filter: JavaScript Language Filter: C++ Language Filter: XAML
C#
Visual Basic
Java
JavaScript
C++
XAML
Introduction
General Information
What's New In This Release
Version History
Getting Started
Code Completion With VSDoc IntelliSense
Programming Interface Overview
Tutorials
Reference
MindFusion.Common
Control Class
DateFormats Class
DateSettings Class
EventDispatcher Class
IdGenerator Class
Locale Class
Locale Members
Locale Constructor
Locale Methods
default Method
fromJson Method
Locale Properties
NotifyCollectionChangedAction Class
NotifyCollectionChangedEventArgs Class
NotifyCollectionChangingEventArgs Class
PropertyEventArgs Class
UIControl Class
Unit Class
UnitType Enumeration
MindFusion.Common.Collections
MindFusion.Controls
MindFusion.Scheduling
Licensing
Online Resources
Technical Support
MindFusion Products

Deserializes the locale from a JSON string.

Namespace: MindFusion.Common
Assembly: 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

Locale Members
Locale Class
MindFusion.Common Namespace