When using the auto for tooltip position, I would like the option to prioritize the order.
[right, left, bottom, top] for example would mean that it would check if that area is available to display a tooltip, and if not, it'll move on to the next one in the list.
Is this an option? How will I go about creating this functionality if not?
Hello, John-Paul
Thank you for the confirmation.
This is the official public link:
https://feedback.telerik.com/kendo-react-ui/1454854-kendo-react-tooltip-control-the-priority-when-calculating-auto
Regards,
Stefan
Progress Telerik
Hi Stephan,
That would be great. Thank you!
Hеllo, John-Paul,
Thank you for the clarification.
Would you like me to transfer this as an official public feature request as it already has the specific information connected to it?
If made official, the item will appear here and the community can vote for it as this will increase its chances to be implemented sooner:
https://feedback.telerik.com/kendo-react-ui
Regards,
Stefan
Progress Telerik
Hello Stefan,
Yes, that's the expected behaviour.
We are hoping to use the tooltip in a list/treelist view configuration to provide additional helper text for the items in the list. It seems like the current tooltip will prioritize vertical configurations first (top, bottom) which means that it has a chance to obscure text previous/next list items. Ideally, we would like that the tooltip prioritize horizontally and if for some reason the view is super narrow then the tooltip should appear vertically, obscuring other items as a last resort.
Regards,
JP
Hello, John-Pau,
With the array option, the desired result is to show the Tooltip at the first available position from the array.
Let's say we have ['top', 'left', 'right', 'bottom'] and if the top is not possible, we will show that item on the left side? Then for another item, top and left are not possible, and we will show it on the right?
I would like to get as much context as possible to ensure that we will provide an option that will best suit the application requirements. Is it possible to share some context around this, for example, what is the current issue which this feature will try to resolve?
Regards,
Stefan
Progress Telerik
Hi Stefan,
I am not 100% sure, in my head, I was expecting the ability to provide an array of directions that would rely on the default method of calculating position but follow priority of the array that was provided.
Hello, John-Paul,
Thank you for the suggestion.
If you would like, I can convert this to an official feature request.
Also, is it possible to share more details, how this is expected to work? For example, we can provide a callback function in which, you can do the desired calculations and return the position. Then the Tooltip will use that position when displayed. This will allow to dynamically set the position each time the Tooltip is opended.
Regards,
Stefan
Progress Telerik