component.js 354 B

12345678910111213
  1. function init_components_library(input){
  2. var data = input.data();
  3. var doc = new DocumentApi(input);
  4. doc.options.panels.tree.visible = data.treePanel;
  5. doc.options.panels.search.visible = data.searchPanel;
  6. doc.options.panels.detail.visible = data.detailPanel;
  7. doc.options.root = data.root;
  8. doc.options.rootLabel = data.rootLabel;
  9. doc.load();
  10. }