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

Allow tooltip positioning (ex. before, after, above, below) in relation to target element #7775

Closed
DerekJDev opened this issue Jul 10, 2020 · 6 comments
Assignees
Labels
overlay 🧰 feature-request tooltip ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged.

Comments

@DerekJDev
Copy link

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

I need to be able to position the tooltip in different areas around the target element besides below it, but with current documentation it doesn't look like there is a place to specify this setting.

Describe the solution you'd like

A clear and concise description of what you want to happen.

Have an option to specify the position of the tooltip in relation to the target element, maybe add an attribute igxTooltipPosition="below | above | before | after"

Describe alternatives you've considered

A clear and concise description of any alternative solutions or features you've considered.

None other than a different UI framework.

Additional context

Add any other context or screenshots about the feature request here.

@kdinev
Copy link
Member

kdinev commented Jul 24, 2020

@DiyanDimitrov Does the tooltip currently utilize the same positioning strategy as the overlay?

@DiyanDimitrov
Copy link
Contributor

DiyanDimitrov commented Jul 24, 2020

@kdinev, yes, the tooltip positioning could be changed by modifying the overlaySettings.

@wnvko
Copy link
Contributor

wnvko commented Aug 6, 2020

@DerekJDev
Here you can find a sample showing how you can use OverlaySettings in order to position the tooltip.

Note: I know creating an overlay settings is not so straight forward task. This is why we are planning now to implement some factory methods that will create ready to use overlay settings. As soon as we implement these methods we will refer this issue too.

@github-actions
Copy link

There has been no recent activity and this issue has been marked inactive.

@github-actions github-actions bot added the status: inactive Used to stale issues and pull requests label Oct 11, 2020
@wnvko
Copy link
Contributor

wnvko commented Oct 18, 2020

@DerekJDev we have implemented the factory methods for creating an OverlaySettings. Here you can find updated sample showing the tooltip by the help of the new factory methods. Now you can use code like this to initialize overlay settings:

    this.afterSettings = IgxOverlayService.createRelativeOverlaySettings(
      this.afterTarget.elementRef.nativeElement,
      RelativePosition.After,
      RelativePositionStrategy.Connected
    );

Keep in mind the Stackblitz sample uses RC version of components.

@wnvko wnvko reopened this Oct 18, 2020
@Lipata Lipata removed the status: inactive Used to stale issues and pull requests label Oct 21, 2020
@PlamenaMiteva
Copy link
Contributor

@DerekJDev Ignite UI for Angular v10.2.0, which includes the new methods for creating OverlaySettings, has been released. You can find more information and a demo about the new functionality here.

@wnvko wnvko added ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged. and removed 🆕 status: new labels Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
overlay 🧰 feature-request tooltip ✅ status: resolved Applies to issues that have pending PRs resolving them, or PRs that have already merged.
Projects
None yet
Development

No branches or pull requests

6 participants