How to add input parameter to a Binding event?

I’m trying to add an input to the OnGenerateItemWidget function because I want to pass an extra parameter when generating the options for the Combobox.
But because the event is bound, adding parameters causes an unknown error.
Is there any way avoid this?