Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to update title only #209

Open
adityatoshniwal opened this issue Jun 26, 2023 · 6 comments
Open

No way to update title only #209

adityatoshniwal opened this issue Jun 26, 2023 · 6 comments

Comments

@adityatoshniwal
Copy link

I need to update the title dynamically. I cannot find anyway to do that. updateTab requires content as well.

@NouarSalhEddine
Copy link

NouarSalhEddine commented Jun 26, 2023

did you find any sollution ?

@NouarSalhEddine
Copy link

i tried to modify the title using the DOM it's working but it loses some functionalities like drag and drop , close

@adityatoshniwal
Copy link
Author

@NouarSalhEddine I tried this:

docker.updateTab('tab-id', {...docker.find('tab-id'), title: 'new title'})

and it seems to be working fine.

@NouarSalhEddine
Copy link

it's working thank you so much

@adityatoshniwal
Copy link
Author

I am closing this. Although hacky, there is still a way to do it.

@adityatoshniwal adityatoshniwal closed this as not planned Won't fix, can't repro, duplicate, stale Jun 27, 2023
@adityatoshniwal
Copy link
Author

I reopening this as I found an issue with the approach I mentioned. The content is destroyed and recreated, which causes focus to lose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants