Deserializes items from a JSON string.
Namespace: MindFusion.Common.UI
File: Menu.js
JavaScript Copy Code |
---|
function fromJson (json) |
String. A string created by the toJson method.
The following code creates a Menu using an HTML element called "links" and loads the menu content from a json string:
JavaScript Copy Code |
---|
var ui = MindFusion.UI; document.addEventListener("DOMContentLoaded", function () |