Slots

UI Components for Vue
Post Reply
PrimeVueUser
Posts: 3
Joined: 08 Feb 2021, 13:54

08 Feb 2021, 14:17

Hello,

I'm new in the PrimeVue-Community and I looked in the documentation, but didn't really find anything to it.

In Vuetity many components have slot-properties like "no-data" in a Data-Table. Is there an equivalent in PrimeVue?

adlaws
Posts: 9
Joined: 04 Feb 2021, 10:51

09 Feb 2021, 05:30

Howdy,

I've come from more of a Vuetify background myself and wondered the same thing; I initially couldn't see it in the documentation either, but it is there

What you're after is the DataTable component's `empty` slot, and the documentation is here:

https://www.primefaces.org/primevue/sho ... /datatable

Just search for 'Empty Message', and you'll find it, along with an example.

It provides the same functionality as `no-data` in Vuetify.

Hope that helps!

Andrew

PrimeVueUser
Posts: 3
Joined: 08 Feb 2021, 13:54

11 Feb 2021, 13:35

Thanks, that really helped!

adlaws
Posts: 9
Joined: 04 Feb 2021, 10:51

16 Feb 2021, 07:22

No worries! :D

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests