Skip to main content

Main tabs

Component: <pcp-main-tabs>

Preview:

Preview

Description

This component provides the main tabs of the application, allowing users to navigate between different pages using tab buttons as references. It serves as the primary navigation mechanism for the application.


Usage

import { PcpMainTabsComponent } from '@celerofinancas/pcp-client-ui';
<pcp-main-tabs 
[activeTabIndex]="0"
(currentTabChange)="currentTabChange($event)"
(availableTabs)="availableTabs($event)"
/>

Inputs

NameTypeDefaultDescriptionRequired
activeTabIndexnumberThe current tab index that is activeYES

Outputs

NameTypeDescription
currentTabChangeTabsOptions["routerLink"]Emitted when the user selects a different tab
availableTabsTabsOptionsEmitted when the request to user authorizations completes, it will emit the current tabs available for the current user

Dependencies

  • @celerofinancas/design-system
  • @celerofinancas/ui-loaders

Notes

The availableTabs output emits its event only once, during the ngOnInit lifecycle hook. This occurs as soon as the component initializes and requests the user's authorizations from the server.