Skip to content

Add conditional tooltip support (md-visible for md-tooltip) #3657

Closed

Description

@pdavin-zz

Bug, feature request, or proposal:

Can we have conditional tooltip support like in AngularJs? By conditional tooltip I mean the tooltip only displays if a certain condition is true. The element the tooltip is on should always be displayed - so the element the tooltip is attached to is not conditional. This is behavior offered by md-visible with Angular 1's md-tooltip I believe: https://material.angularjs.org/latest/api/directive/mdTooltip

What is the expected behavior?

https://material.angularjs.org/latest/api/directive/mdTooltip

What is the current behavior?

https://material.angular.io/components/component/tooltip

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

Allows writing conditional tooltips, without duplicating DOM structure (creating two copies of the potentially-tooltip'd text or element).

Activity

  1. andrewseguin commented on Mar 17, 2017

    @andrewseguin
    Contributor

    Good news, this has been added recently and will be included in the next release

    #3578

  2. pdavin-zz commented on Mar 17, 2017

    @pdavin-zz
    Author

    Great! Sorry for the dupe - I did search open/closed issues before submitting and didn't find anything, but I think that's because I didn't expect it to be phrased as disabled.

  3. angular-automatic-lock-bot commented on Sep 5, 2019

    @angular-automatic-lock-bot

    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.

  4. locked and limited conversation to collaborators on Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions