In order to trigger dialog close event in APEX 5. You can write the following javascript code in the function and global declaration part of parent page. It refreshes the particular part of page.
function customEvent(event, data){
apex.event.trigger( "#REGIONID", "apexrefresh" );
}
In modal page, put it in the dialog attribute.
close: function() { customEvent('customDialogClose', {modalPageId: 'MODAL_CLOSE_FIXED'});}
Thx a lot. This tip helped me a lot with DropDown Menu 😉