core/tabs/tabs.service.ts
A service which defines the used tabs.
Properties |
Methods |
|
Accessors |
constructor(rootInjector: Injector, router: Router, translateService: TranslateService, options: OptionsService, plugins: PluginsResolveService)
|
||||||||||||||||||
Parameters :
|
add | ||||||||
add(item: Tab)
|
||||||||
Adds a new item to tabs and emits state change
Parameters :
Returns :
void
|
areAvailable | ||||||||
areAvailable(tabLabels: string[])
|
||||||||
Checks if at least one of the tabs is available.
Parameters :
Returns :
boolean
Returns true if at least one of the tabs is available. |
prepareTabs | ||||
prepareTabs(tabs)
|
||||
Parameters :
Returns :
any
|
remove | ||||||||
remove(item: Tab)
|
||||||||
Removes a tab and emits a state change.
Parameters :
Returns :
void
|
Protected setupItemsObservable |
setupItemsObservable()
|
Returns :
Observable<Tab[]>
|
sortTabs | ||||
sortTabs(tabs)
|
||||
Parameters :
Returns :
any
|
refresh |
refresh()
|
Refresh the extension factories
Returns :
void
|
Protected emitNewState |
emitNewState()
|
Emits a new state.
Returns :
void
|
map | ||||||||
map(mappedProperty: (undefined) => void)
|
||||||||
Maps to a property and just returns that property.
Parameters :
Returns :
Observable<any>
|
items$ |
Type : Observable<Tab[]>
|
orientation$ |
Type : Observable<"vertical" | "horizontal">
|
factories |
Type : ExtensionFactory<T>[]
|
Default value : []
|
Protected injectors |
Type : Injector[]
|
All injectors to search for an extension. |
Readonly refresh$ |
Type : Observable<void>
|
Readonly state$ |
Default value : new BehaviorSubject<Set<T>>(new Set<T>())
|
state |
getstate()
|
Returns the current state.
Returns :
Set<Tab>
|
firstTab$ |
getfirstTab$()
|