Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Add custom buttons to tabs #158

Open
greatpixels opened this issue Aug 9, 2022 · 1 comment
Open

Add custom buttons to tabs #158

greatpixels opened this issue Aug 9, 2022 · 1 comment

Comments

@greatpixels
Copy link

The ability to refresh the page would be great.
It would be nice if the current page could be refreshed by adding a refresh icon to the left of the tab title or next to the close icon.
I tried to do it myself but couldn't. Could you please show me where to start?
Thank you.

@brrd
Copy link
Owner

brrd commented Aug 15, 2022

Currently there is no API in electron-tabs to add custom buttons into a tab. I will change this issue into a feature request.

You can still reload the page using the webview API:

const webview = tab.webview;
tab.webview.reload();

@brrd brrd changed the title Refresh tab Add custom buttons to tabs Aug 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants