Skip to content

[Tooltip] Allow global configuration of position #14862

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

Closed
wbeeftink opened this issue Jan 17, 2019 · 1 comment · Fixed by #14872
Closed

[Tooltip] Allow global configuration of position #14862

wbeeftink opened this issue Jan 17, 2019 · 1 comment · Fixed by #14872
Assignees
Labels
feature This issue represents a new feature or feature request rather than a bug or bug fix P4 A relatively minor issue that is not relevant to core functions

Comments

@wbeeftink
Copy link

Please describe the feature you would like to request.

Allow global configuration of tooltip position.

What is the use-case or motivation for this proposal?

We use many tooltips in our application and it's tedious and prone to errors to have to define matTooltipPosition="above" in all instances.

Is there anything else we should know?

As far as I can tell, the MAT_TOOLTIP_DEFAULT_OPTIONS interface only allows setting delays and not the position.

From the source:

/** Default `matTooltip` options that can be overridden. */
export interface MatTooltipDefaultOptions {
    showDelay: number;
    hideDelay: number;
    touchendHideDelay: number;
}
@crisbeto crisbeto self-assigned this Jan 17, 2019
@crisbeto crisbeto added feature This issue represents a new feature or feature request rather than a bug or bug fix has pr P4 A relatively minor issue that is not relevant to core functions labels Jan 17, 2019
crisbeto added a commit to crisbeto/material2 that referenced this issue Jan 17, 2019

Verified

This commit was signed with the committer’s verified signature.
IvanGoncharov Ivan Goncharov
Allows for the default position of `MatTooltip` to be set via an injection token.

Fixes angular#14862.
andrewseguin pushed a commit that referenced this issue Jan 23, 2019
Allows for the default position of `MatTooltip` to be set via an injection token.

Fixes #14862.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature This issue represents a new feature or feature request rather than a bug or bug fix P4 A relatively minor issue that is not relevant to core functions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants