Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Custom Responsive Sort Order #1126

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

Merged
1 commit merged into from
Feb 3, 2020
Merged

Custom Responsive Sort Order #1126

1 commit merged into from
Feb 3, 2020

Conversation

adumesny
Copy link
Member

@adumesny adumesny commented Feb 3, 2020

Description

  • add oneColumnModeDomSort true|false to let you specify a custom layout (use dom order instead of x,y) for oneColumnMode setColumn(1)

  • fix for Custom Responsive Sort Order #713

  • better than PR Adding Support for oneColumnModeSort Options (Custom Responsive Sort Order) #966 which attempted to make a generic support for oneColumn only mode, yet didn't modify the other layouts sorting.
    Instead user will have complete control (dom order) iresptive of layouts sort.
    Also works with current setColumn() implementation

  • added karma tests

  • Note: you cannot change this flag and expect 1 column (which is cached) to change (can see in column.html,
    unless you add/remove items in larger layouts the blows caches). Future todo.

Checklist

  • Created tests which fail without the change (if possible)
  • All tests passing (yarn test)
  • Extended the README / documentation, if necessary

* add `oneColumnModeDomSort` true|false to let you specify a custom layout (use dom order instead of x,y) for oneColumnMode `setColumn(1)`
* fix for #713
* better than PR #966 which attempted to make a generic support for oneColumn only mode, yet didn't modify the other layouts sorting.
Instead user will have complete control (dom order) iresptive of layouts sort.
Also works with current setColumn() implementation
* added karma tests

* Note: you cannot change this flag and expect 1 column (which is cached) to change (can see in column.html,
unless you add/remove items in larger layouts the blows caches). Future todo.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 67.769% when pulling 77df15c on adumesny:develop into 639d58a on gridstack:develop.

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.

2 participants