primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Integrate pTooltip with pMenu* via MenuModel API extension

Open KeithGillette opened this issue 8 years ago • 4 comments

I'm submitting a ... (check one with "x")

[ ] bug report => Search github for a similar issue or PR before submitting
[X] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Current behavior Currently the MenuModel includes a title property which sets the title element attribute on the various pMenu* templates, providing basic tooltip functionality via the browser's native support for displaying the title attribute of an HTML element.

Desired behavior Display the pTooltip component on hover of a pMenu* menu item, via properties passed from a new tooltip property on the MenuItem API with properties corresponding to the pToolTip API:

  • pTooltip
  • tooltipPosition
  • tooltipEvent
  • positionStyle
  • tooltipDisabled
  • appendTo
  • hideDelay
  • showDelay
  • tooltipStyleClass
  • escape
  • tooltipZIndex

What is the motivation / use case for changing the behavior? Consistent user (and developer) experience in displaying tooltips, regardless of the component in which the tooltip is embedded.

KeithGillette avatar Dec 22 '17 14:12 KeithGillette

I agree with this. Sort of weird that by default the tooltip of the menus for example in the p-menubar do not have the same tooltip label as when p-tooltip is used.

tiger5226 avatar Dec 31 '17 14:12 tiger5226

Implemented a fix in PR #5422

sourabh8003 avatar Mar 26 '18 08:03 sourabh8003

any intention to implement this feature in the near future?

flkeller avatar Jun 24 '21 15:06 flkeller

Tooltip added to MenuModel in release 12.1.

KeithGillette avatar Oct 01 '21 12:10 KeithGillette