splits API

This commit is contained in:
Eugene Pankov
2019-03-06 23:46:04 +01:00
parent d25751abe7
commit 2c4c094941
2 changed files with 85 additions and 59 deletions

View File

@@ -118,7 +118,7 @@ export class AppService {
openNewTab (type: TabComponentType, inputs?: any): BaseTabComponent {
let splitTab = this.tabsService.create(SplitTabComponent) as SplitTabComponent
let tab = this.tabsService.create(type, inputs)
splitTab.insert(tab, null, 'r')
splitTab.addTab(tab, null, 'r')
this.addTabRaw(splitTab)
return tab
}