tauri icon indicating copy to clipboard operation
tauri copied to clipboard

[feat] Make Window Title Available in appWindow Instance

Open samconran opened this issue 2 years ago • 2 comments

Describe the problem

It's tricky when making custom title bars for a window—or trying to update the window title with something based on the current title—to actually pin down in code what the current title is.

Describe the solution you'd like

On the appWindow level, we have the ability to call appWindow.setTitle("..."). It would be good if we could get a reference to the current title here as well. A property of appWindow.title would probably be best, but exposing it through appWindow.getTitle() would also work fine.

Alternatives considered

No response

Additional context

No response

samconran avatar Aug 24 '22 08:08 samconran

/upstream tauri-apps/tao

amrbashir avatar Aug 31 '22 21:08 amrbashir

Upstream issue at https://github.com/tauri-apps/tao/issues/546 has been closed.

tauri-apps[bot] avatar Oct 03 '22 22:10 tauri-apps[bot]

Is this in the latest version of tauri? I'm getting a Uncaught TypeError: appWindow.title is not a function

elibroftw avatar Mar 13 '23 16:03 elibroftw

The latest https://www.npmjs.com/package/@tauri-apps/api, is not 1.2.3 :(, it's been 3 months.

elibroftw avatar Mar 13 '23 16:03 elibroftw

1.3 is currently in internal audit so it hopefully shouldn't take much longer to get your hands on it.

FabianLars avatar Mar 13 '23 16:03 FabianLars