Skip to content

[Tooltip] Allow global configuration of position #14862

@wbeeftink

Description

@wbeeftink

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;
}

Metadata

Metadata

Assignees

Labels

P4A relatively minor issue that is not relevant to core functionsfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions