core/action-bar/action-bar.component.ts
This component is used as the outlet to show the action bars. In a c8ycli app it is by default placed on the bootstrap component.
host | { |
selector | c8y-action-bar |
templateUrl | ./action-bar.component.html |
Properties |
Methods |
Inputs |
HostBindings |
HostListeners |
constructor(gainsightService: GainsightService)
|
||||||
Parameters :
|
hasTabs |
Type : boolean
|
Default value : false
|
Identifies if the current view has tabs. If yes, the action bar needs to move down. |
isTabsHorizontal |
Type : boolean
|
Default value : false
|
Identifies if the tabs are aligned horizontally. If yes, the tabs don't need to move to the left. |
items$ |
Type : Observable<ActionBarItem[]>
|
Default value : of([])
|
The current items to display in the ActionBar. |
navigatorOpen |
Type : boolean
|
Default value : false
|
Identifies if the navigator is opened. If yes, the action-bar needs to move to the right. |
class.c8y-ui-action-bar |
Type : boolean
|
Default value : true
|
Adds the default |
hidden |
Type : boolean
|
Default value : true
|
Binds hidden property to this component's native element |
mousedown |
Arguments : '$event.target'
|
mousedown(event: HTMLElement)
|
mouseDown | ||||||
mouseDown(event: HTMLElement)
|
||||||
Decorators :
@HostListener('mousedown', ['$event.target'])
|
||||||
Parameters :
Returns :
void
|
ngOnDestroy |
ngOnDestroy()
|
Returns :
void
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
hidden |
Type : boolean
|
Default value : true
|
Decorators :
@HostBinding()
|
Binds hidden property to this component's native element |
hidden$ |
Type : Observable<boolean>
|
Default value : of(true)
|
Returns true if no items are present and hides the action bar. |
isPageToolbarExpanded |
Default value : false
|
Identifies if in a mobile view the toolbar is expanded or not. |
left$ |
Type : Observable<ActionBarItem[]>
|
Default value : of([])
|
Provides observable for left action items. |
more$ |
Type : Observable<ActionBarItem[]>
|
Default value : of([])
|
Provides observable for more action items. |
right$ |
Type : Observable<ActionBarItem[]>
|
Default value : of([])
|
Provides observable for right action items. |
uiActionBar |
Default value : true
|
Decorators :
@HostBinding('class.c8y-ui-action-bar')
|
Adds the default |