Function to register a callback on this pattern
The id of the OverflowMenu element
The name of the event to register the callback for
The function invoked when the event fires
the API response envelope as a JSON string: { code, isSuccess, message, value? }
{ code, isSuccess, message, value? }
Function to register a callback on this pattern