appui.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. function createApp(){
  2. return {
  3. $cell: true,
  4. $type: "div",
  5. class: "propGrid max-width mdc-layout-grid mdc-layout-grid--align-left",
  6. $components: [
  7. {
  8. $cell: true,
  9. $type: "div",
  10. class: "mdc-layout-grid__inner",
  11. $components: [
  12. {
  13. $cell: true,
  14. $type: "div",
  15. class: "mdc-layout-grid__cell mdc-layout-grid__cell--span-12",
  16. $components: [
  17. {
  18. $cell: true,
  19. $type: "button",
  20. class: "mdc-button mdc-button--raised",
  21. $text: "Draw L-System",
  22. onclick: function (e) {
  23. let sceneID = vwf.find("","/")[0];
  24. vwf_view.kernel.callMethod(sceneID, "testDrawLsys");
  25. }
  26. }
  27. ]
  28. }
  29. ]
  30. }
  31. ]
  32. }
  33. }