Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Global config for a tooltip CollapseStrategy Supplier #761

Closed
jhickman opened this issue Feb 7, 2023 · 0 comments
Closed
Assignees
Labels
enhancement New feature or request Feature
Milestone

Comments

@jhickman
Copy link

jhickman commented Feb 7, 2023

In the global DominoUI config, it would be nice to have a configuration for a CollapseStrategy for tooltips. This way the show/hide of tooltips can be customized.

One use case is to support being able to delay the 'show' using a cancelable timer. This would be considered a 'theme' level change as it may be desired for ALL tooltips to have a 1 or 2 second delay before showing. It would be much more convenient to have a global config rather than setting the strategy on every single instance of tooltip.

Other CollapseStrategy Suppliers already exist onthe DominoUIConfig such as for card, accordion, tree and a 'default'; however the setDefaultCollapseStrategySupplier is not used in Tooltip (found in the Tooltip constructor)

Example code could be:

Supplier<CollapseStrategy> supplier = () -> return new XXCollapseStrategy();

DominoUIConfig.INSTANCE.setDefaultTooltipCollapseStrategySupplier(supplier);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Feature
Projects
None yet
Development

No branches or pull requests

2 participants