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

Add save/restore buttons on graph view leaf #8

Open
Sanqui opened this issue Jul 4, 2022 · 0 comments
Open

Add save/restore buttons on graph view leaf #8

Sanqui opened this issue Jul 4, 2022 · 0 comments

Comments

@Sanqui
Copy link
Owner

Sanqui commented Jul 4, 2022

Instead of requiring the use of commands, add save/restore buttons alongside "Close" and "More options".

Method suggested by koala:

I think you'd be better off using addAction on the graph view leaf https://github.com/obsidianmd/obsidian-api/blob/d4b79f95ccf3838a305915a137a844250766d023/obsidian.d.ts#L1514 and storing a reference to each added button on your plugin. Then you can just call HTMLElement.detach() to remove it.

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

1 participant