Moving from setPanelEditor to setPanelOptions

I’m updating my code to upgrade from the deprecated setPanelEditor, to setPanelOptions.
With setPanelOptions, is it still possible to get event like onChange or onClick when the user changes a setting or click on a button?

Typically, that’s what I was doing with setPanelEditor:

<HorizontalGroup>
    <IconButton
        name="trash-alt"
        size="xl"
        surface="panel"
        onClick={event => this.onDeleteItem(event, index)}
    />
    <IconButton name="copy" size="xl" surface="panel" onClick= {event => this.onCloneItem(event, oneItem)} />
</HorizontalGroup>

Thanks