Skip to content

[Tooltip] allow configuration of the hide delay #1808

Closed
@rolandjitsu

Description

@rolandjitsu

Bug, feature request, or proposal:

Feature

What is the expected behavior?

TOOLTIP_HIDE_DELAY should be configurable even though according to the specs is set to be 1.5 seconds.
Ideally, a user should configure it via an opaque token:

import {TOOLTIP_HIDE_DELAY} from '@angular/material';

@NgModule({
    providers: [
        {provide: TOOLTIP_HIDE_DELAY, useValue: 450}
    ]
})
export class MyModule {}

What is the current behavior?

Currently you cannot configure the timing.

What are the steps to reproduce?

Providing a Plunker (or similar) is the best way to get the team to see your issue.
Plunker template: http://plnkr.co/edit/o077B6uEiiIgkC0S06dd

What is the use-case or motivation for changing an existing behavior?

Some users may wish to hide the tooltip earlier than the spec dictates.

Which versions of Angular, Material, OS, browsers are affected?

2.0.0-alpha.10

Is there anything else we should know?

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workaround

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions