ID = "_my_package"; PACKAGE = { "_my_package":{ "name":"My package", "text":"My package", "children":["_folder_1", "_folder_2"], "object":{ "function_1":function(e){ console.log("aaa"); alert(); }, "function_2":function(e){ }, "function_3":function(e){ }, "setProperty":function(e) { }, "getProperty":function(e) { }, "setCallback2":function(e) { $('#'+e.id).on("click", e.value); }, "myOpen":function(e) { h1 = document.createElement("h1"); h1.innerHTML = "TEST"; e.container.appendChild(h1); } } }, "_folder_1":{ "name":"Folder-1", "text":"Folder 1", "children":["_component_1_1", "_component_1_2"] }, "_folder_2":{ "name":"Folder-2", "text":"Folder 2", "children":["_component_2_1", "_component_2_2"] }, "_component_1_1":{ "name":"Component 1.1", "text":"Component 1.1", "children":true, "parameter":[ { "name":"property-group-1", "text":"property-group-1", "children":[ { "name":"property-1-1", "text":"property-1-1", "input":{"type":"0", "value":""}, "setParameter":"setProperty", "getParameter":"getProperty" }, { "name":"property-1-2", "text":"property-1-2", "input":{"type":"custom", "value":{}, "open":"myOpen", "save":function(e){ return {}; }}, "setParameter":"setProperty", "getParameter":"getProperty" }, { "name":"property-1-3", "text":"property-1-3", "input":{"type":"3", "value":""}, "setParameter":function(e){}, "getParameter":"getProperty" }, ] }, { "name":"property-2", "text":"property-2", "input":{"type":"1", "option":[{value:"option-0", text:"option-0"}, {value:"option-1", text:"option-1"}], value:"option-0"}, "setParameter":function(e) { }, "getParameter":function(e) { } }, { "name":"property-3", "text":"property-3", "input":{"type":"2", "option":[{value:"option-0", text:"option-0"}, {value:"option-1", text:"option-1"}], value:["option-0", "option-1"]}, "setParameter":function(e) { }, "getParameter":function(e) { } } ], "callback":[ {"name":"callback-group-1", "text":"callback-group-1", "children":[ {"name":"callback-1-1", "text":"callback-1-1", "setCallback":function(e) {}}, {"name":"callback-1-2", "text":"callback-1-2", "setCallback":function(e) {}} ]}, {"name":"callback-2", "text":"callback-1", "setCallback":"setCallback2"} ], "write_head_init":function(e) { return ""; }, "write_body_start":function(e) { return "
"; }, "write_body_init":function(e) { return ""; }, "add_body_script":function(e) { } }, "_component_1_2":{ "name":"Component 1.2", "text":"Component 1.2", "children":true, "parameter":[ { "name":"property-1", "text":"property-1", "input":{"type":"0", "value":""}, "setParameter":"setProperty", "getParameter":"getProperty" }, { "name":"property-2", "text":"property-2", "input":{"type":"1", "option":[{value:"option-0", text:"option-0"}, {value:"option-1", text:"option-1"}], value:"option-0"}, "setParameter":function(e) { }, "getParameter":function(e) { } } ], "callback":[ {"name":"callback-1", "text":"callback-1", "setCallback":function(e) {}, "getCallback":function(e) {}} ], "write_head_init":function(e) { return ""; }, "write_body_start":function(e) { return "