可以在 Reactjs 中使用 glEventHub 来操作有关设计更改和其他事件的选项卡,这是我无法以角度实现的。
React.js 示例:
let config={...}
var myLayout = new GoldenLayout( config );
myLayout.registerComponent( 'Applications', Applications );
myLayout.init();
let event = this.props.glEventHub._layoutManager;
event.root.contentItems[0].contentItems[0].contentItems[1].element.hide();
myLayout.updateSize()
//or we can add child to the layout
let newConfig={..}
event.root.contentItems[0].contentItems[0].addChild(newConfig);
请让我知道如何在角度上实现相同的效果。