primeng icon indicating copy to clipboard operation
primeng copied to clipboard

New grid system based on flex

Open Tuizi opened this issue 9 years ago • 15 comments

I'm submitting a ... (check one with "x")

[ ] bug report => Search github for a similar issue or PR before submitting
[x] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Current behavior

The current grid system is based on the float layout.

Expected behavior

Add a new grid system based on the flex layout (because we are in 2017)

What is the motivation / use case for changing the behavior?

No need to present the popular display property: flex. PrimeNG is the only new framework that still use the old layout system: float. It could be great to have a grid system based on display: flex and even better in the future, based on display: grid

Tuizi avatar Jul 04 '17 18:07 Tuizi

+1

I hate outdated float based layout too. For now, we can use Flexbox in Bootstrap 4. There is one section in the upcoming book which describes Flexbox intergration in PrimeNG. Project is here: https://github.com/ova2/angular-development-with-primeng/tree/master/chapter2/graphic-editor-bootstrap4

ova2 avatar Jul 04 '17 18:07 ova2

@ova2 On our side we will switch from PrimeNG grid system to Angular official Flex Layout system https://github.com/angular/flex-layout/wiki/Responsive-API

Tuizi avatar Jul 04 '17 20:07 Tuizi

I don't like Angular directives and prefer pure CSS solution for Flexbox layout (pure CSS works faster). Names are also shorter. My choice is Bootstrap 4 Layout system. It's very powerful.

Am 04.07.2017 22:53 schrieb "Fabien Rogeret" [email protected]:

@ova2 https://github.com/ova2 On our side we will switch from PrimeNG grid system to Angular official Flex Layout system https://github.com/angular/flex-layout/wiki/Responsive-API

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/primefaces/primeng/issues/3298#issuecomment-312951183, or mute the thread https://github.com/notifications/unsubscribe-auth/AAu1ZhrD7puvKXsEt8OmAM758Ngjkhl0ks5sKqZKgaJpZM4ONmdS .

ova2 avatar Jul 05 '17 05:07 ova2

@Tuizi angular/flex-layout is still in beta and full of bugs

d668 avatar Aug 07 '17 13:08 d668

@intergleam We use it here for 4 months and no blocking bugs. Angular will start to be more active with FlexLayout, I know its a beta but everything we were expecting work perfectly with this version right now

Tuizi avatar Aug 07 '17 14:08 Tuizi

I have @angular/common 2.4.8, tried to install @angular/flex-layout 2.0.0-beta.8, and I have a bunch of errors...

WARNING in ./~/@angular/flex-layout/media-query/breakpoints/break-points-token.js 13:29 export 'InjectionToken' was not found in '@angular/core'

and much more

d668 avatar Aug 07 '17 14:08 d668

You should consider updating your Angular version, they don't support 2.4.x. It's in bold at the beginning of the README

Tuizi avatar Aug 07 '17 14:08 Tuizi

+1 for this feature. It would be nice if we could use the other flexbox alignment options with the grid system (horizontal and vertical alignment, etc.)

AlejandroFlorin avatar Feb 13 '18 01:02 AlejandroFlorin

We need Native CSS Grid support too.

kolkov avatar May 06 '18 17:05 kolkov

FlexGrid coming soon for 6.1.4.

cagataycivici avatar Aug 31 '18 07:08 cagataycivici

Implemented for 6.1.4.

cagataycivici avatar Aug 31 '18 10:08 cagataycivici

https://www.primefaces.org/primeng/#/flexgrid

cagataycivici avatar Sep 13 '18 13:09 cagataycivici

I have bought Ultima theme. But, there are no styles for flexgrid classes in theme's CSS file. I am using flexgrid.css but that makes the page very unattractive. Below I have posted the same form one with using ui-g classes and other with using flexgrid classes, one with flexgrid looks bad there is no padding in rows. flexgrid using flexgrid. ui-g using ui-g

SarvagyaS avatar Sep 20 '18 12:09 SarvagyaS

how long before the current Grid CSS is removed and FlexGrid is fully documented and all examples updated on the site with FlexGrid?

scblur869 avatar Apr 18 '19 18:04 scblur869

Hello, will it be possible to update the ultima primeng templates in order to use the flexgrid system? they are currently outdated and misleading,

Thanks,

cicciogeppo88 avatar Jan 23 '20 17:01 cicciogeppo88