OfficeDev / office-ui-fabric-js

JavaScript components for building experiences for Office and Office 365.
http://dev.office.com/fabric
Other
368 stars 114 forks source link

Command Bar issue in Fabric UI #356

Closed raj-crec closed 5 years ago

raj-crec commented 6 years ago

Hi,

I am trying to put a drop-down in a command bar, with the following code:

Even though I copy all of it from the Fabric documentation, it doesn't work. I don't see any drop-down on clicking the button. All this is inside a command bar

.

Documentation link: https://dev.office.com/fabric-js/Components/CommandBar/CommandBar.html

The Fabric code used to render it, is:

<script type="text/javascript">
    var CommandBarElements = document.querySelectorAll(".ms-CommandBar");
    for (var i = 0; i < CommandBarElements.length; i++) {
        new fabric['CommandBar'](CommandBarElements[i]);
    }
</script>

I tried in IE as well as in Firefox. Doesn't Work !

Any help ??

Regards,

Raj Abhishek

Linda-Editor commented 5 years ago

Microsoft no longer supports this content and will not be responding to bugs or issues. We recommend that you use the newer version, Office UI Fabric, with React as your front-end framework. We are closing this issue; if you still need assistance with Fabric.js, visit Stack Overflow/office-ui-fabric.