[FEAT] Dynamic window title
See original GitHub issueIs your feature request related to a problem? Please describe.
It would be great if each page could have an auto-generated and custom title.
Example, For the Posts resource
- dashboard ->
Dashboard | refine
- list ->
Posts | refine
- edit ->
#{id} Edit Post | refine
- show ->
#{id} Show Post | refine
- create ->
Create new Post | refine
It can also be overridden by adding an event to the refine options.
onWindowTitle: ({ resource, action, params, autoGeneratedTitle }) => {
console.log({ resource, action, params, autoGeneratedTitle });
*/
{
resource: "posts",
options: { foo: "bar" },
params: { id: 1, action: "edit" }
autoGeneratedTitle: "#{1} Edit Post | refine"
}
*/
}
It can also be managed manually with a hook called useWindowTitle()
or useDocumentTitle()
Describe alternatives you’ve considered
No response
Additional context
No response
Describe the thing to improve
Pages can be easily distinguished in browser history and tabs
Issue Analytics
- State:
- Created a year ago
- Comments:13 (12 by maintainers)
Top Results From Across the Web
How to set a dynamic window title for foot terminal? - Reddit
I am sure this has a simple solution, but I appear to be missing it: I would like the foot terminal window to...
Read more >Dynamic window title with zsh shell - gists · GitHub
Dynamic window title with zsh shell. # Shows current directory and running (multi-line) command. case "$TERM" in (rxvt|rxvt-*|st|st-*|*xterm*|(dt|k|E)term).
Read more >Dynamic window Title - Help - UiPath Community Forum
Hi Guyz, Am trying to select item, type into like that, what ever am trying it shows selector not found, actually my browser...
Read more >Is it possible to see an entire window title? - Super User
I'm working with Google Chrome, and apparently you can have different browser windows under the same process ID. When trying to find the...
Read more >How to get GNU screen to dynamically set gnome-terminal's ...
WOuld be nice if gnome terminal's title changed everytime I switch windows with in my screen session. There are quite a few questions...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@aliemir @omeraplak, please unassign me from this issue. It would be better if someone else work on this one, I’m not able to solve this issue.
@ckragarwal any updates on this one? We’re waiting for your PR 🚀