Page 1 of 1

Where to download primeelements-3.0.js?

Posted: 05 Mar 2018, 02:05
by helloneoberg
i am new to PrimeUI.
Can someone guide me where to download this file?
<script type="text/javascript" src="%PATH%/primeelements-3.0.js"></script>

I got <script type="text/javascript" src="%PATH%/x-tag-core.min.js"></script> from the link "X-Tag library" in the QuickStart guide and i added <script type="text/javascript" src="lib/primeui/primeelements.min.js"></script> from the primeui version 4.1.15 which i had bower.
I tried out:
<p-dropdown name="element" filter>
<option value="0">Select a City</option>
<option value="1">Barcelona</option>
<option value="2">Berlin</option>
<option value="3">Istanbul</option>
and had the error message:
Uncaught TypeError: is not a function
at HTMLElement.created (primeelements.min.js:1)
at HTMLElement.value [as createdCallback] (x-tag-core.min.js:2)

Appreciate any help.
Thank you very much

Re: Where to download primeelements-3.0.js?

Posted: 16 Aug 2018, 07:32
by trumpP
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>
From where should I download primeelements-3.0.js file when the main PrimeUI package doesn't contain it?

Next - Web Components: PromeElements

I have tried to get some examples to work but I had no luck. For an example

<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>