gridflex is not working

UI Components for Angular
Post Reply
rahav
Posts: 4
Joined: 18 Jul 2018, 10:27

06 Sep 2018, 10:58

i want to use the new gridflex but the example does not work
i only get the
1
2
3

with out the blue box and also the values should be next to each other not above
i think some thing is missing in the export

<h3 class="first">Basic</h3>
<div class="p-grid">
<div class="p-col">
<div class="box">1</div>
</div>
<div class="p-col">
<div class="box">2</div>
</div>
<div class="p-col">
<div class="box">3</div>
</div>
</div>

kaisch
Posts: 3
Joined: 07 Sep 2018, 21:55

07 Sep 2018, 22:24

Hi,

have exactly the same problem!

The first step to solve the problem is to install primeflex:
npm install primeflex --save
But what has to be done next?

merve7
Posts: 861
Joined: 12 Sep 2017, 10:44

10 Sep 2018, 10:53

Did you add flex style in your angular.json ?

Code: Select all

 
              "styles": [
              //other styles
                "node_modules/primeflex/primeflex.css"
              ],
 

kaisch
Posts: 3
Joined: 07 Sep 2018, 21:55

12 Sep 2018, 21:28

Thanks to merve7. It works with the style add.

@rahav: the blue boxes are not part of gridflex. It is done by simple css styling.
You will find the proper CSS code when you click on source and scroll down.

BR
Kai

rahav
Posts: 4
Joined: 18 Jul 2018, 10:27

13 Sep 2018, 08:08

thank you
after running
npm install primeflex --save
and adding
"node_modules/primeflex/primeflex.css" to angular.json
it worked !!!
thank you merve7

Rahav

Chamiyalt
Posts: 1
Joined: 31 Jul 2021, 13:18

31 Jul 2021, 13:20

npm install primeflex --save
and adding
"node_modules/primeflex/primeflex.css" to angular.json

but still not working on angular 11

plmtemplate
Posts: 1
Joined: 17 Dec 2020, 10:53

24 Nov 2021, 22:05

In my case I have just installed older version 2.0.0 and it works. npm install primeflex@2.0.0

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 14 guests