dev2go
dev2go

Reputation: 1649

Close panel in jquery/css in Office UI Fabric JS

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?

Upvotes: 0

Views: 944

Answers (1)

devfric
devfric

Reputation: 7512

You could trigger the existing Panel close button via jQuery

$(".ms-Panel-closeButton").trigger("click");

Upvotes: 2

Related Questions