0

How do I close a panel in Office UI Fabric JS when click on button?

In Bootrap I have the options via CSS by adding

data-dismiss="modal" to the button class

Also in bootstrap I have the option in jquery to hide a modal by

$('#myModal').modal('hide');

What is the jquery equivalent for Office UI Fabric to hide an already opened panel?

dev2go
  • 1,539
  • 3
  • 13
  • 15

1 Answers1

2

You could trigger the existing Panel close button via jQuery

$(".ms-Panel-closeButton").trigger("click");
devfric
  • 7,304
  • 7
  • 39
  • 52