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

enhance grouping for context menu options #3924

Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export interface EmbeddableFactory<
* Returns a display name for this type of embeddable. Used in "Create new... " options
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it helps, I can change this comment to inform users that a React element is also supported here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need this change? This is for the Create new button for embeddables right?

* in the add panel for containers.
*/
getDisplayName(): JSX.Element | string;
getDisplayName(): string;

/**
* If false, this type of embeddable can't be created with the "createNew" functionality. Instead,
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/ui_actions/public/util/presentable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export interface Presentable<Context extends object = object> {
/**
* Returns a title to be displayed to the user.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here for changing this comment to inform users that a React element is also supported here.

*/
getDisplayName(context: Context): JSX.Element | string;
getDisplayName(context: Context): string;

/**
* Returns tooltip text which should be displayed when user hovers this object.
Expand Down