Has anybody found a way to add tooltips
to the dat.gui entries?
It seems there is no class
assigned to them so how can I select them?
Has anybody found a way to add tooltips
to the dat.gui entries?
It seems there is no class
assigned to them so how can I select them?
Copyright © 2021 Jogjafile Inc.
You will need to add this capability to dat.GUI yourself. Here are some guidelines and an example solution.
Entries are represented with classes that are inherited from the
Controller
class. Each controller has a private member__li
, that represents its<li>
element in the gui. You can extend theController
prototype and add atitle
function, that will add, update or remove the__li
's title attribute.Here is the snippet: