Dropdown using Office UI Fabric not rendering properly
while designing apps office using office ui fabric components.
i facing issue in designing drop-down.
its coming shown in below image.
i have included files in html page:
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
<link rel="stylesheet" href="https://appsforoffice.microsoft.com/fabric/1.0/fabric.min.css">
<link rel="stylesheet" href="https://appsforoffice.microsoft.com/fabric/1.0/fabric.components.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/fabric.js/1.7.2/fabric.min.js"></script>
and calling "$('.ms-dropdown').dropdown();" on document load.
hi pooja,
do mean there are no items in dropdown list? if so, share html , related js reproduce issue in simple html page?
i made test below, works correctly.
//html reference <script src='https://cdn.rawgit.com/mikewheaton/office-ui-fabric-releases/master/1.2.1/js/jquery.fabric.min.js'></script> <script src='https://rawgit.com/mikewheaton/office-ui-fabric-releases/master/1.2.1/js/jquery.fabric.min.js'></script> //html dropdown <div class="ms-dropdown" tabindex="0"> <i class="ms-dropdown-caretdown ms-icon ms-icon--caretdown"></i> <select class="ms-dropdown-select"> <option>choose sound…</option> <option>dog barking</option> <option>wind blowing</option> <option>duck quacking</option> <option>cow mooing</option> </select> </div> //js office.initialize = function (reason) { $(document).ready(function () { $('.ms-dropdown').dropdown(); var element = document.queryselector('.ms-messagebanner'); messagebanner = new fabric.messagebanner(element); messagebanner.hidebanner(); loadprops(); }); };
in addition, suggest refer link below:
# dropdown component doesn't work
https://github.com/officedev/office-ui-fabric-core/issues/251
best regards,
edward
msdn community support
please remember click "mark answer" responses resolved issue, , click "unmark answer" if not. can beneficial other community members reading thread. if have compliments or complaints msdn support, feel free contact msdnfsf@microsoft.com.
Microsoft Office for Developers , Apps for Office and SharePoint > Developing Apps for Office 2013
Comments
Post a Comment