在 Office UI Fabric JS 中关闭 jquery/css 中的面板

Close panel in jquery/css in Office UI Fabric JS

如何在单击按钮时关闭 Office UI Fabric JS 中的面板?

在 Bootrap 中,我通过添加

通过 CSS 获得选项
data-dismiss="modal" to the button class

同样在 bootstrap 中,我可以在 jquery 中选择通过

隐藏模态
$('#myModal').modal('hide');

Office UI Fabric 隐藏已打开面板的 jquery 等效项是什么?

您可以通过 jQuery

触发现有的面板关闭按钮
$(".ms-Panel-closeButton").trigger("click");