Show description or tooltip on boolean controls by brockfanning · Pull Request #2072 · eclipsesource/jsonforms
Conversation
The intended behavior here is that if a boolean control has a description, then it will appear as a tooltip. However if showUnfocusedDescription is true, then the description appears below as text. I tried to copy as much code from existing components as possible, but I'm happy to make any changes as needed.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @brockfanning, thank you very much for your contribution :)
I tested it and it seems to work well.
I have two requests:
- Could you extend one the examples to contain a description for the boolean control. E.g. you could extend packages/examples/src/examples/control-options.ts
- Could you also add this behavior to the MaterialBooleanToggleControl as well? This way both boolean controls behave consistently.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for the updates and again for the contribution :)
CI did not run again due to a first time contributor. However, I executed the build and unit tests locally and they still worked :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters