Tabbar: Change Tab ID

Is there a way to change the ID of a tab? I’m setting the id of a new tab as “quoteNew” when I create it, but when I save the data and it returns a numeric ID of the saved data record in the database, I want to change the tab id with the database record id, for instance “quote11528”. (I also want to change the tab label from “New” to “11528”, but I’m pretty sure I can figure that out later.) Is such a thing possible without creating a new tab?

Hello,

You need to create another tab with new `id` and `tab` values to update the tabbar component and remove the previous tab. This approach ensures that you can get the access to the newly created tab later. It might look like:

tabbar.addTab({tab: “new Tab”, id: “new Id”, html: “new html”}, 1);
tabbar.removeTab(1);

Please check the following snippet: