How should one use Granite UI foundation events to build a more dynamic dialog?
I was searching for how to show/hide fields, whether a checkbox was checked or not.
So I found the following documentation: https://developer.adobe.com/experience-manager/reference-materials/6-5/granite-ui/api/jcr_root/libs/granite/ui/components/coral/foundation/clientlibs/foundation/vocabulary/toggleable.html
My understanding is that I can annotate a field with the “foundation-toggleable-control” class, and then when I press the field, a "foundation-toggleable-show" event will be dispatched.
Using a custom clientlib, I can listen to the event; however, the default behavior of the checkbox stops working.
Thanks.