0

Demo Fiddle

I'd like to show some help text using a popover for the entire group of fields, not for each individual input.

In the fiddle, I'm simply using a mouseenter trigger to show how it should look like, but what I really want is to trigger it on focus for any input, but have the popover be positioned based on the parent element.

In non-angular land, I'd trigger a custom event (say groupenter) when any one of the fields is in focus, and have the popover listen to that event. I'd also debounce the corresponding groupleave event so the popover won't flicker as I tab around the inputs.

What's an angular-y way to accomplish that here?

(I think this patch helps, but it just got committed days ago)

1 Answer 1

0

Got it working!

I had to fork tooltip.js to add 'groupenter': 'groupleave' to triggerMap since there's no public api to add to the map.

Sign up to request clarification or add additional context in comments.

1 Comment

I realize you already answered this but I think the more angular-esque way might be to use $scope models. If you can watch a variable to see if it becomes truthy or falsey, you can then have ng-focus="show=true" ng-blur="show=false" or something.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.