ManifestWebDesign / angular-gridster

An implementation of gridster-like widgets for Angular JS
http://manifestwebdesign.github.io/angular-gridster/
MIT License
964 stars 394 forks source link

Dynamic columns support #451

Open arkabide opened 7 years ago

arkabide commented 7 years ago

Two new gridster properties have been added to support dynamic columns: 'minWidthToAddANewColumn' which indicates the minimun width (in px) to add a new column and 'dynamicColumns', a boolean indicating if we want a responsive gridster that calculates the best number of columns for every screen resolution.

On every window resize, the number of suitable columns will be calculated (if 'dynamicColumns' is set to true) taking into account that the minimum width to add a new column is set by 'minWidthToAddANewColumn'. This is also the minimum width of a column before removal if window resizes down.

Feel free to suggest any changes

samal-rasmussen commented 7 years ago

Any reason this is not getting reviewed?

neulishuai commented 6 years ago

@arkabide dynamic colums weather make the items in gridster order right when change colums?