foundryvtt / foundryvtt

Public issue tracking and documentation for Foundry Virtual Tabletop - software connecting RPG gamers in a shared multiplayer environment with an intuitive interface and powerful API.
https://foundryvtt.com/
244 stars 9 forks source link

Request: Add tooltip option to formGroup and formInput hbs helpers #11781

Open mkahvi opened 4 weeks ago

mkahvi commented 4 weeks ago

User Experience

It's your own feature, please support it by adding an option for it in these!

As things stand currently, these require wrapping both in additional elements to add such which is a bit much.

krbz999 commented 4 weeks ago

Should be noted that formGroup supports the dataset option, which would then be able to do tooltips (data-tooltip). Though I agree that having just a tooltip option would be nice as this would require less data prep.

aaclayton commented 3 weeks ago

Please expand on the initial request with specifics about how you would want the tooltip to behave. Which element in the form group should receive the tooltip? How would that be parameterized?

mkahvi commented 3 weeks ago

The tooltip being on the input would be preferable I think, but the entire form-group getting it would be fine.

As for behaviour, normally tooltips search for direction and classes with .closest() so they could easily be allowed to do that, leaving configuration to any parent element such as the app part container element being rendered. Besides that let it work as they do by default.


formGroup supports the dataset

This seems to be undocumented?