Page 1 of 1

Newbie questions - QuickStart, PrimeElements and more

Posted: 16 Nov 2016, 21:32
by AdamR
I'm new to PrimeUI and I have followed steps form the main PrimeUI page and QuickStart.

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

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>
dialog window got open but I'm not able to close it - getting errors:

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)
I'm running latest jQuery and jQuery UI

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.

Re: Newbie questions - QuickStart, PrimeElements and more

Posted: 17 Nov 2016, 15:50
by AdamR
I have tried other examples and it came that I'm able to get to work about 1/4 of them. Rest simple is not working at all or throwing errors all around.

Any clue what I have missed?

Re: Newbie questions - QuickStart, PrimeElements and more

Posted: 29 Nov 2016, 21:21
by afuentes
AdamR wrote:
From where should I download primeelements-3.0.js file when the main PrimeUI package doesn't contain it?
Hi,

the number of version in the file's name is not used anymore in the new versions of primeUI. In fact you only need to add the dependence in this way:

Code: Select all

<script type="text/javascript" src="%PATH%/primeelements.js"></script>
that file is essential if you want to use PrimeElements notation.

Regards,