File

core/tabs/tabs.service.ts

Index

Properties
Methods
Accessors

Constructor

constructor(injector: Injector, router: Router, translateService: TranslateService, options: OptionsService)
Parameters :
Name Type Optional
injector Injector No
router Router No
translateService TranslateService No
options OptionsService No

Methods

add
add(item: Tab)

Adds a new item to tabs and emits state change

Parameters :
Name Type Optional Description
item Tab No

The item to add.

Returns : void
prepareTabs
prepareTabs(tabs)
Parameters :
Name Optional
tabs No
Returns : any
refresh
refresh()

Refresh the extension factories

Returns : void
remove
remove(item: Tab)

Removes a tab and emits a state change.

Parameters :
Name Type Optional Description
item Tab No

The item to remove.

Returns : void
sortTabs
sortTabs(tabs)
Parameters :
Name Optional
tabs No
Returns : any

Properties

items$
items$: Observable<Tab[]>
Type : Observable<Tab[]>
orientation$
orientation$: Observable<string>
Type : Observable<string>
Readonly refreshTrigger
refreshTrigger:
Default value : new Subject()
Readonly state$
state$:
Default value : new BehaviorSubject<Set<Tab>>(new Set<Tab>())

Accessors

state
getstate()

Returns the current state.

Returns : Set<Tab>
firstTab$
getfirstTab$()

result-matching ""

    No results matching ""