Hi, I have created a compound widget (CW) and attempting to use two of the default events. I am using the Click event and it is fired as it should (when the widget is enabled). However, the DisabledClick event is not firing when clicked and CW is disabled. I have monitored events via the diagnostics page to verify. Any help would be appreciated.
Is there anyone who can help @Jason_McCrary?
Please consider Click behavior of widgets.
The DisabledClick is only emited from the widget you clicked on it.
For a compound widget this means, you should get the DisabledClick if you click anywhere in the compound widget where no other widget is. If you click on a widget (within the compound widget) you get only the DisabledClick, if this widget is configured to emit this event, too.
I think there are mainly two options.
You need to configure for each widget (within the compound widget) the DisabledClick and aggregate the information for the whole widget (could e.g. be done with scripting).
Or you use the client system event “DisabledClick” - this would, also for widgets in compound widgets, emit the event, incl. the information which widgets was clicked. Hower, this can only be used outside the compound widget.
CHH
@hobi , thank you for your response. If I chose to use the second option, how can I know in the event binding (outside of the CW) which CW was clicked? I believe I can make this work but need to have a way to navigate to the appropiate page/content. I have numerous CW widgets of the same type in a single content. Agian, any advise is very much appreciated.
JM