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

Allow extension register custom topbar menu command #982

Merged
merged 5 commits into from
Sep 26, 2024
Merged

Conversation

huchenlei
Copy link
Member

@huchenlei huchenlei commented Sep 26, 2024

  app.extensionManager.menu.registerTopbarCommands(["ext", "ext2"], [{id:"foo", label: "foo", function: () => alert(1)}])

image

@huchenlei huchenlei merged commit 3585cb6 into main Sep 26, 2024
9 checks passed
@huchenlei huchenlei deleted the command_refac branch September 26, 2024 01:44
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

Successfully merging this pull request may close these issues.

1 participant