DataView Grid columns

UI Components for Vue
Post Reply
Posts: 3
Joined: 25 Oct 2022, 20:07

25 Oct 2022, 20:18

I'm new to PrimeVue (v2.9.2). I've been trying to use the DataView component. Everything works fine but I would like to change the number of columns of the grid template. It's set to 3 by default. Is there any property I can change to set the columns to 4?

Posts: 30
Joined: 06 Sep 2022, 08:59

27 Oct 2022, 09:20

You should change #grid slot's first container class. For example:

<div class="col-12 md:col-4"> to <div class="col-12 md:col-3">

Posts: 1
Joined: 26 Oct 2022, 15:55

27 Oct 2022, 10:19

Hello and thank you @bahadirsofuoglu for this clarification. It works on my side following your advice.
My website : Bdsm Sex

Posts: 3
Joined: 25 Oct 2022, 20:07

27 Oct 2022, 22:53

Thanks a lot! It worked perfectly :D

Post Reply

Return to “PrimeVue”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest