Setting up a p-tabview with tabs containing specific content involves the following code:
<p-tabView class="tabmain" >
<ng-container *ngFor="let tab of tabs">
<p-tabPanel [header]="tab.header" >
<p-table
....
To allow users to rename the tabs in the tab header, I have considered two options:
- Implement a context menu (right mouse click) on the tabs with a "rename" option that opens a dialogue box for entering a new tab name.
- Add a rightIcon next to the tab text, like an edit icon, which when clicked will prompt the user to enter a new name in a dialogue box.
I am unsure if such functionalities are supported by p-tabview. If they are, please provide guidance on how to incorporate them.