Is there any event on show/hide for Dialog?

Is there an equivalent event to Bootstrap’s show.bs.modal when using new frappe.ui.Dialog , and if so, how can I listen to it?

found it

new frappe.ui.Dialog({
    on_page_show: () => {
      console.log('on_page_show')
    }
  })