I have created a p-tabview with each tab containing some content using:
<p-tabView class="tabmain" >
<ng-container *ngFor="let tab of tabs">
<p-tabPanel [header]="tab.header" >
<p-table
....
I intend to provide a use model to rename the tabs in the tab header. I can think of 2 options :
- Provide a context menu(right mouse click) on the tabs with rename menu option which on click will open some dialogue to enter new tab name.
- Provide a rightIcon next to the tab text like an edit icon which on click should again open some dialogue to ask the user for the new name.
Problem is I don't see any material whatsoever for the above 2 options provided for p-tabview. My doubt is whether such feature is even supported by p-tabview ? If yes, then please suggest the way to implement it.