Programmatically Tab title change


#1

Hi all,
i’m creating my own atom package with custom panes with custom UI inside.
I need to change at runtime and programmatically the title of the tab that containing the pane but I can not find the way to do it.
Does anyone know how to help me?
thanks

cheers
Marco


#2

Implement a getTitle() method on the item being displayed. You can test this in the developer tools with atom.workspace.getActiveTextEditor().getTitle().


#3

Hi DamnedScholar
thanks for your reply, i have already implemented the getTitle() method but i’m looking for a “fire update” event after some internal pane data changes.
For example, if the user change some values into my pane i need to change the title of the tab programmatically without close and reopen it.

regards
Marco


#4

It seems a little weird to me that it doesn’t automatically update.