How To Close ReadOnly Child Table When button on click

Hi,
I want Close this child table popup or row when i click on Assign Button.
Thanks in advance

I found the Solution

let table = frappe.ui.form.get_open_grid_form();
table.toggle_view(false);