Newbie questions - QuickStart, PrimeElements and more

jQuery UI Widgets
Post Reply
AdamR
Posts: 2
Joined: 16 Nov 2016, 20:56

16 Nov 2016, 21:32

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.

AdamR
Posts: 2
Joined: 16 Nov 2016, 20:56

17 Nov 2016, 15:50

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?

afuentes
Posts: 4
Joined: 05 Feb 2016, 16:48

29 Nov 2016, 21:21

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,

Post Reply

Return to “PrimeUI”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests