Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic columns support #451

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

arkabide
Copy link

@arkabide arkabide commented Oct 8, 2016

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

Added description for new gridster properties (dynamicColumns and
minWidthToAddANewColumn) and a new event 'gridster-columns-changed'
fired when the number of columns changes.
…s: minWidthToAddANewColumn which indicates the minimun width (in px) to add a new column and dynamicColumns (boolean) indicating if we want a responsive gridster that calculates the best number of columns for every screen resolution
@arkabide arkabide changed the title Dynamic colums Dynamic columns support Oct 10, 2016
@samal-rasmussen
Copy link

Any reason this is not getting reviewed?

@neulishuai
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants