libs/upp-wdgt/src/components/upp-tabbar/upp-tabbar.ts
Represents a tab button that belongs to the UppTabBarComponent.
It communicates with the parent UppTabBarComponent when clicked.
OnInit
OnDestroy
| changeDetection | ChangeDetectionStrategy.OnPush |
| selector | upp-tab-button |
| template | |
| styleUrl | ./upp-tabbar.scss |
Methods |
Inputs |
Accessors |
constructor(change: ChangeDetectorRef, tabbar: UppTabBarComponent)
|
||||||||||||
|
Parameters :
|
| tabicon |
Type : string | null
|
Default value : null
|
|
The icon name to be used for the tab button. |
| tablabel |
Type : string | null
|
Default value : null
|
|
The label to be displayed inside the tab button. |
| tabname |
Type : string | null
|
Default value : null
|
|
The name of the tab. |
| ngOnDestroy |
ngOnDestroy()
|
|
Lifecycle hook that is called before Angular destroys the component.
Unsubscribes from the
Returns :
void
|
| ngOnInit |
ngOnInit()
|
|
Lifecycle hook that is called after Angular initializes the component.
Subscribes to the
Returns :
void
|
| OnTab |
OnTab()
|
|
Handles the tab button click event.
Calls the
Returns :
void
|
| IsTab |
getIsTab()
|
|
Determines whether the tab is currently selected. |