I'm new to PrimeUI and have tried to follow steps from PrimeUI QuickStart guide.
From one paragraph:
In order to use PrimeElements, add X-Tag library that also includes the pollyfill for custom elements.
<script type="text/javascript"src="%PATH%/x-tag-core.min.js"></script>
<script type="text/javascript" src="%PATH%/primeelements-3.0.js"></script>
but PrimeUI download package doesn't contains primeelements-3.0.js. Any clue where I can get that file?
Going forward with examples. I have tried to use code from PrimeElements - Web Components
<button type="button" is="p-button" icon="fa-external-link" onclick="document.getElementById('dlgelement').show()" >Show</button>
<p-dialog id="dlgelement" title="Dialog Header" modal showeffect="fade" hideeffect="fade" draggable resizable>
<p>Dialog content here.</p>
</p-dialog>
final effect is that I can open dialog box but not able to close it due to errors
primeui.min.js:3 Uncaught TypeError: t(...).zIndex is not a function
at HTMLDocument.<anonymous> (http://localhost/lib/primeui.min.js:3:9501)
at HTMLDocument.dispatch (http://localhost/lib/jquery.js:4732:27)
at HTMLDocument.elemData.handle (http://localhost/lib/jquery.js:4544:28)
I have tried other code examples from their showcase but I have got about 10% of them to work.
Any itps what I have missing?
I created a Plunker based off the Dialog sample code and it would not execute the PrimeElement code. Here is the example I created (Version 3: https://plnkr.co/edit/WMawVdtcvDpmVxzI4b3Q?p=preview )
index.html
This is based off the Quick Start and Dialog example.
I was only able to get it to work after I added jQuery initialization.
Working here: (Version 5) https://plnkr.co/edit/WMawVdtcvDpmVxzI4b3Q?p=preview
It may be a bug in the PrimeUI. You can for the Plunker and test your own code.
Update
As I tinker with this more, since I have not used PrimeUI before, I updated my Plunker to match their example code. When I go to close a dialog is when I encounter the error you described.
I switched to the non-minimized version and got:
.zIndex() is an element of jQuery UI and should have already loaded. This error suggests that something in PrimeUI is not using it right or disabling it.