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

Sidebar tab API for extensions #215

Merged
merged 3 commits into from
Jul 25, 2024
Merged

Sidebar tab API for extensions #215

merged 3 commits into from
Jul 25, 2024

Conversation

huchenlei
Copy link
Member

@huchenlei huchenlei commented Jul 25, 2024

Extensions now can call following API to register a sidebar tab.

  app.extensionManager.registerSidebarTab({
    id: "search",
    icon: "pi pi-search",
    title: "search",
    tooltip: "search",
    type: "custom",
    render: (el) => {
      el.innerHTML = "<div>Custom search tab</div>";
    },
  });

The list of supported icons can be find here: https://primevue.org/icons/#list

We will support custom icon later.
image

@huchenlei huchenlei merged commit 19c70d9 into main Jul 25, 2024
3 checks passed
@huchenlei huchenlei deleted the panel_api branch July 25, 2024 01:32
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