From there
From where should I download primeelements-3.0.js file when the main PrimeUI package doesn't contain it?In order to use PrimeElements, add X-Tag library that also includes the pollyfill for custom elements.Code: Select all
<script type="text/javascript" src="%PATH%/x-tag-core.min.js"></script> <script type="text/javascript" src="%PATH%/primeelements-3.0.js"></script>
Next - Web Components: PromeElements
I have tried to get some examples to work but I had no luck. For an example
Code: Select all
<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>
Code: Select all
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:5226:27)
at HTMLDocument.elemData.handle (http://localhost/lib/jquery.js:4878:28)
Last one question - showcases. Is it possible to download them locally? I have tried to pull from github but can't get any to work.
Thanks for help.