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

[Feature Request]: Please add public API for adding sidebar buttons and drawer widgets #2095

Open
1 task done
JaredTherriault opened this issue Dec 29, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@JaredTherriault
Copy link

JaredTherriault commented Dec 29, 2024

Is there an existing issue for this?

  • I have searched the existing issues and checked the recent builds/commits

What would your feature do ?

The sidebar in the new UI is great! As a plugin developer, it would be extremely useful to be able to add custom buttons and widgets that go in the drawer when the button is clicked, similar to how we can add items to the settings element with 'app.menu.settingsGroup'.

As a bonus, it would be fantastic from a user perspective to be able to enable/disable sidebar buttons just like being able to enable/disable extensions.

Proposed workflow

  1. Call 'app.menu.sidebar.registerButton()'
  2. Pass in parameters 'name' (string), 'buttonImagePath' (string, image path) and 'onRequestDrawerWidget' (function)
  3. The app script would then add a new button to the sidebar (if not disabled by name in settings) and when clicked will call
    onRequestDrawerWidget to get the widget to be shown in the drawer, then open the drawer to show the widget.

Additional information

No response

┆Issue is synchronized with this Notion page by Unito

@JaredTherriault JaredTherriault added the enhancement New feature or request label Dec 29, 2024
@Amorano
Copy link

Amorano commented Dec 31, 2024

Are you referring to the existing app.extensionManager.registerSidebarTab to register tab "buttons" in the sidebar, or do you mean something else?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants