Talk:OOjs/Events
Add topicAppearance
Latest comment: 9 years ago by SPage (WMF) in topic Connecting events
Connecting events
[edit]What if I'm working with a ButtonGroupWidget? How could I connect a single click event to all the buttons inside it? Jdlrobson (talk) 21:25, 11 August 2015 (UTC)
- You can use the
aggregate
method of "Group" widgets, such as ButtonGroupWidget, to emit an aggregate event like 'someButtonInMeClicked' when any contained item is clicked. I added a mention of this to OOjs UI/Elements/Groups#Aggregate events; I'm not sure if it should be mentioned here. -- SPage (WMF) (talk) 22:10, 11 August 2015 (UTC)