libs/upp-wdgt/src/components/upp-tabbar/upp-tabbar.ts
Represents a tab bar component that contains multiple tab buttons. It manages tab selection and emits an event when a tab is selected.
| changeDetection | ChangeDetectionStrategy.OnPush |
| selector | upp-tab-bar |
| templateUrl | ./upp-tabbar.html |
| styleUrl | ./upp-tabbar.scss |
Methods |
Inputs |
Outputs |
Accessors |
constructor(change: ChangeDetectorRef)
|
||||||||
|
Parameters :
|
| selected |
Type : string | null
|
Default value : null
|
|
The currently selected tab name. |
| Selected |
Type : EventEmitter
|
|
Event emitted when a tab is selected. The selected tab name is passed as a string. |
| OnSelected | ||||||||
OnSelected(tabbutton: string)
|
||||||||
|
Handles tab selection by setting the current tab and emitting the selection event.
Parameters :
Returns :
void
|
| current |
getcurrent()
|
|
Gets the currently selected tab name.
Returns :
string | null
|
<ion-tab-bar>
<ng-content></ng-content>
</ion-tab-bar>